~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: mbp at sourcefrog
  • Date: 2005-04-04 13:10:26 UTC
  • Revision ID: mbp@sourcefrog.net-20050404131026-628553cc03687658
new 'renames' command

Show diffs side-by-side

added added

removed removed

Lines of Context:
432
432
 
433
433
    
434
434
 
 
435
def find_renames(old_inv, new_inv):
 
436
    for file_id in old_inv:
 
437
        if file_id not in new_inv:
 
438
            continue
 
439
        old_name = old_inv.id2path(file_id)
 
440
        new_name = new_inv.id2path(file_id)
 
441
        if old_name != new_name:
 
442
            yield (old_name, new_name)
 
443