~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Patch Queue Manager
  • Date: 2012-02-20 12:40:02 UTC
  • mfrom: (6468.2.8 bzr)
  • Revision ID: pqm@pqm.ubuntu.com-20120220124002-0wte938ee8s7k0pm
(jelmer) Avoid direct access of tree inventories in a couple more places.
 (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1650
1650
    def run(self, dir=u'.'):
1651
1651
        tree = WorkingTree.open_containing(dir)[0]
1652
1652
        self.add_cleanup(tree.lock_read().unlock)
1653
 
        new_inv = tree.root_inventory
1654
1653
        old_tree = tree.basis_tree()
1655
1654
        self.add_cleanup(old_tree.lock_read().unlock)
1656
 
        old_inv = old_tree.root_inventory
1657
1655
        renames = []
1658
1656
        iterator = tree.iter_changes(old_tree, include_unchanged=True)
1659
1657
        for f, paths, c, v, p, n, k, e in iterator: