~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/diff.py

  • Committer: Aaron Bentley
  • Date: 2007-12-06 18:20:35 UTC
  • mto: This revision was merged to the branch mainline in revision 3088.
  • Revision ID: abentley@panoramicfeedback.com-20071206182035-fsvtracks7b99c14
Diff handles missing files correctly, with no tracebacks

Show diffs side-by-side

added added

removed removed

Lines of Context:
743
743
        """
744
744
        try:
745
745
            old_kind = self.old_tree.kind(file_id)
746
 
        except errors.NoSuchId:
 
746
        except (errors.NoSuchId, errors.NoSuchFile):
747
747
            old_kind = None
748
748
        try:
749
749
            new_kind = self.new_tree.kind(file_id)
750
 
        except errors.NoSuchId:
 
750
        except (errors.NoSuchId, errors.NoSuchFile):
751
751
            new_kind = None
752
752
 
753
753
        result = DiffPath._diff_many(self.differs, file_id, old_path,