~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-09-01 08:02:42 UTC
  • mfrom: (5390.3.3 faster-revert-593560)
  • Revision ID: pqm@pqm.ubuntu.com-20100901080242-esg62ody4frwmy66
(spiv) Avoid repeatedly calling self.target.all_file_ids() in
 InterTree.iter_changes. (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1130
1130
            if file_id in to_paths:
1131
1131
                # already returned
1132
1132
                continue
1133
 
            if file_id not in self.target.all_file_ids():
 
1133
            if not self.target.has_id(file_id):
1134
1134
                # common case - paths we have not emitted are not present in
1135
1135
                # target.
1136
1136
                to_path = None