~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Martin Pool
  • Date: 2006-01-13 05:52:00 UTC
  • mto: (1185.50.49 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1549.
  • Revision ID: mbp@sourcefrog.net-20060113055200-7e197ac9ec1326f1
[patch] stat-cache fixes from Denys

Show diffs side-by-side

added added

removed removed

Lines of Context:
914
914
        between multiple working trees, i.e. via shared storage, then we 
915
915
        would probably want to lock both the local tree, and the branch.
916
916
        """
917
 
        if self._hashcache.needs_write:
 
917
        if self._hashcache.needs_write and self.branch._lock_count==1:
918
918
            self._hashcache.write()
919
919
        return self.branch.unlock()
920
920