~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Robert Collins
  • Date: 2005-10-11 01:05:24 UTC
  • mto: This revision was merged to the branch mainline in revision 1438.
  • Revision ID: robertc@robertcollins.net-20051011010524-e258bc8d051cc9d2
add a cache bound to Transactions, and a precious facility, so that we keep inventory.weave in memory, but can discard weaves for other such files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
371
371
            self._lock_mode = 'r'
372
372
            self._lock_count = 1
373
373
            self._set_transaction(transactions.ReadOnlyTransaction())
 
374
            # 5K may be excessive, but hey, its a knob.
 
375
            self.get_transaction().set_cache_size(5000)
374
376
                        
375
377
    def unlock(self):
376
378
        mutter("unlock: %s (%s)", self, self._lock_count)