~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-10-12 20:49:51 UTC
  • mfrom: (1551.21.3 Aaron's mergeable stuff)
  • Revision ID: pqm@pqm.ubuntu.com-20081012204951-j2dgh06nuzrak1ri
Deprecate find_renames (abentley)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1090
1090
            old_tree.lock_read()
1091
1091
            try:
1092
1092
                old_inv = old_tree.inventory
1093
 
                renames = list(_mod_tree.find_renames(old_inv, new_inv))
 
1093
                renames = []
 
1094
                iterator = tree.iter_changes(old_tree, include_unchanged=True)
 
1095
                for f, paths, c, v, p, n, k, e in iterator:
 
1096
                    if paths[0] == paths[1]:
 
1097
                        continue
 
1098
                    if None in (paths):
 
1099
                        continue
 
1100
                    renames.append(paths)
1094
1101
                renames.sort()
1095
1102
                for old_name, new_name in renames:
1096
1103
                    self.outf.write("%s => %s\n" % (old_name, new_name))