Rev 7: Lock to improve performance. in file:///data/jelmer/bzr-global-log/trunk/
Jelmer Vernooij
jelmer at samba.org
Tue Nov 20 18:22:46 GMT 2007
At file:///data/jelmer/bzr-global-log/trunk/
------------------------------------------------------------
revno: 7
revision-id:jelmer at samba.org-20071105035535-c83m79si303p8osw
parent: jelmer at samba.org-20071105033740-91rpwjvbgfixmk2u
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Mon 2007-11-05 04:55:35 +0100
message:
Lock to improve performance.
modified:
__init__.py __init__.py-20071029004222-avdgq0mc7n1q6q8f-1
stack.py stack.py-20071105021820-d024bz62abe2t3fv-1
=== modified file '__init__.py'
--- a/__init__.py 2007-11-05 03:37:40 +0000
+++ b/__init__.py 2007-11-05 03:55:35 +0000
@@ -24,7 +24,7 @@
def get_cache_db_path():
- return osutils.pathjoin(config_dir(), "global-log.db")
+ return osutils.pathjoin(config_dir(), "global-log-cache.db")
class cmd_global_log(Command):
=== modified file 'stack.py'
--- a/stack.py 2007-11-05 02:53:26 +0000
+++ b/stack.py 2007-11-05 03:55:35 +0000
@@ -38,10 +38,12 @@
yield self._get_stacked_revision(revid)[0]
def lock_read(self):
- pass
+ for repos in self._subrepositories:
+ repos.lock_read()
def unlock(self):
- pass
+ for repos in self._subrepositories:
+ repos.unlock()
def lock_write(self):
pass
More information about the bazaar-commits
mailing list