/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/mutabletree.py

  • Committer: Ian Clatworthy
  • Author(s): Vincent Ladeuil
  • Date: 2009-04-03 05:17:24 UTC
  • mto: (4246.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 4247.
  • Revision ID: ian.clatworthy@canonical.com-20090403051724-1rtkgua4zrhbrfrg
inv._get_mutable_inventory() - prepare for CHKInventory

Show diffs side-by-side

added added

removed removed

Lines of Context:
552
552
        # WorkingTree classes for optimised versions for specific format trees.
553
553
        basis = self.basis_tree()
554
554
        basis.lock_read()
555
 
        inventory = basis.inventory
 
555
        # TODO: Consider re-evaluating the need for this with CHKInventory
 
556
        # we don't strictly need to mutate an inventory for this
 
557
        # it only makes sense when apply_delta is cheaper than get_inventory()
 
558
        inventory = basis.inventory._get_mutable_inventory()
556
559
        basis.unlock()
557
560
        inventory.apply_delta(delta)
558
561
        rev_tree = RevisionTree(self.branch.repository, inventory, new_revid)