~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: John Arbash Meinel
  • Date: 2007-03-21 17:51:42 UTC
  • mto: This revision was merged to the branch mainline in revision 2373.
  • Revision ID: john@arbash-meinel.com-20070321175142-052tm470fx9s0obl
Lazily read working inventory in workingtree.py,
this exposes code paths that are not locking the tree before
processing, because they are directly accessing tree._inventory somehow
(one case is Tree.path2id())

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)