~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-03-22 22:51:47 UTC
  • mfrom: (2334.1.6 make_locking_cheaper)
  • Revision ID: pqm@pqm.ubuntu.com-20070322225147-c274f2efe3564edc
(John Arbash Meinel) Change WorkingTree to not read the inventory until we have a lock.

Show diffs side-by-side

added added

removed removed

Lines of Context:
266
266
                     "file is actually %s" % fp['sha1'],
267
267
                     "store is probably damaged/corrupt"])
268
268
 
 
269
    @needs_read_lock
269
270
    def path2id(self, path):
270
271
        """Return the id for path in this tree."""
271
272
        return self._inventory.path2id(path)