Rev 2334: Take out repository locks from Dirstate revision trees, to improve file text access performance. in file:///home/robertc/source/baz/dirstate/
Robert Collins
robertc at robertcollins.net
Fri Feb 16 06:59:51 GMT 2007
At file:///home/robertc/source/baz/dirstate/
------------------------------------------------------------
revno: 2334
revision-id: robertc at robertcollins.net-20070216065950-axser9wg4u3ta0zs
parent: robertc at robertcollins.net-20070216065753-svdi0okn46e24474
committer: Robert Collins <robertc at robertcollins.net>
branch nick: dirstate
timestamp: Fri 2007-02-16 17:59:50 +1100
message:
Take out repository locks from Dirstate revision trees, to improve file text access performance.
modified:
bzrlib/workingtree_4.py workingtree_4.py-20070208044105-5fgpc5j3ljlh5q6c-1
=== modified file 'bzrlib/workingtree_4.py'
--- a/bzrlib/workingtree_4.py 2007-02-16 06:57:53 +0000
+++ b/bzrlib/workingtree_4.py 2007-02-16 06:59:50 +0000
@@ -919,6 +919,8 @@
def lock_read(self):
"""Lock the tree for a set of operations."""
+ if not self._locked:
+ self._repository.lock_read()
self._locked += 1
def path2id(self, path):
@@ -934,6 +936,7 @@
if not self._locked:
self._inventory = None
self._locked = False
+ self._repository.unlock()
def walkdirs(self, prefix=""):
# TODO: jam 20070215 This is the cheap way by cheating and using the
More information about the bazaar-commits
mailing list