~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Robert Collins
  • Date: 2005-10-07 06:13:14 UTC
  • mto: This revision was merged to the branch mainline in revision 1420.
  • Revision ID: robertc@robertcollins.net-20051007061313-9a835e979434e721
use transactions in the weave store interface, which enables caching for log

Show diffs side-by-side

added added

removed removed

Lines of Context:
821
821
        """
822
822
        if revision_id is None:
823
823
            return [None]
824
 
        w = self.control_weaves.get_weave('inventory')
 
824
        w = self.get_inventory_weave()
825
825
        return [None] + map(w.idx_to_name,
826
826
                            w.inclusions([w.lookup(revision_id)]))
827
827
 
828
828
    def get_inventory_weave(self):
829
 
        return self.control_weaves.get_weave('inventory')
 
829
        return self.control_weaves.get_weave('inventory',
 
830
                                             self.get_transaction())
830
831
 
831
832
    def get_inventory(self, revision_id):
832
833
        """Get Inventory object by hash."""