~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Aaron Bentley
  • Date: 2008-09-21 00:27:34 UTC
  • mto: This revision was merged to the branch mainline in revision 3775.
  • Revision ID: aaron@aaronbentley.com-20080921002734-kftpcgbh8yc3zjnc
Deprecate tree.find_renames

Show diffs side-by-side

added added

removed removed

Lines of Context:
989
989
            old_tree.lock_read()
990
990
            try:
991
991
                old_inv = old_tree.inventory
992
 
                renames = list(_mod_tree.find_renames(old_inv, new_inv))
 
992
                renames = []
 
993
                iterator = tree.iter_changes(old_tree, include_unchanged=True)
 
994
                for f, paths, c, v, p, n, k, e in iterator:
 
995
                    if paths[0] == paths[1]:
 
996
                        continue
 
997
                    if None in (paths):
 
998
                        continue
 
999
                    renames.append(paths)
993
1000
                renames.sort()
994
1001
                for old_name, new_name in renames:
995
1002
                    self.outf.write("%s => %s\n" % (old_name, new_name))