~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Martin Pool
  • Date: 2006-01-12 04:54:44 UTC
  • mfrom: (1185.59.10 bzr.cleanup)
  • Revision ID: mbp@sourcefrog.net-20060112045444-cc2e49b5bae40e06
[merge] hashcache and related cleanups 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