~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/diff.py

  • Committer: Martin Pool
  • Date: 2005-05-11 04:57:13 UTC
  • Revision ID: mbp@sourcefrog.net-20050511045713-5175e3084bad6196
- New form 'file_id in tree' to check if the file is present
- Rewrite show_info to work on compare_trees (much faster)
- New form 'for file_id in tree' to iterate through files there.

Show diffs side-by-side

added added

removed removed

Lines of Context:
307
307
    old_inv = old_tree.inventory
308
308
    new_inv = new_tree.inventory
309
309
    delta = TreeDelta()
310
 
    for file_id in old_inv:
311
 
        if file_id in new_inv:
 
310
    for file_id in old_tree:
 
311
        if file_id in new_tree:
312
312
            old_path = old_inv.id2path(file_id)
313
313
            new_path = new_inv.id2path(file_id)
314
314