~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/diff.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-08-14 07:41:17 UTC
  • mfrom: (3619.4.4 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080814074117-x0zvzzv7y6mok8pz
(robertc) Improve the testing of InterTree.iter_changes and fix bugs
        found as a result (Robert Collins, Aaron Bentley)

Show diffs side-by-side

added added

removed removed

Lines of Context:
874
874
                return path.encode(self.path_encoding, "replace")
875
875
        for (file_id, paths, changed_content, versioned, parent, name, kind,
876
876
             executable) in sorted(iterator, key=changes_key):
877
 
            if parent == (None, None):
 
877
            # The root does not get diffed, and items with no known kind (that
 
878
            # is, missing) in both trees are skipped as well.
 
879
            if parent == (None, None) or kind == (None, None):
878
880
                continue
879
881
            oldpath, newpath = paths
880
882
            oldpath_encoded = get_encoded_path(paths[0])