~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

sync with bzr.dev mainline

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