[Pkg-bazaar-commits] ./bzr/unstable r949: - add back update-hashes command for testing/profiling
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 08:21:32 UTC 2009
------------------------------------------------------------
revno: 949
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Wed 2005-07-20 14:31:25 -0300
message:
- add back update-hashes command for testing/profiling
modified:
bzrlib/commands.py
bzrlib/trace.py
-------------- next part --------------
=== modified file 'bzrlib/commands.py'
--- a/bzrlib/commands.py 2005-07-16 00:07:40 +0000
+++ b/bzrlib/commands.py 2005-07-20 17:31:25 +0000
@@ -1254,6 +1254,20 @@
+class cmd_update_hashes(Command):
+ hidden = True
+ def run(self):
+ from bzrlib.hashcache import HashCache
+
+ c = HashCache('.')
+ c.read()
+ for name in c._cache:
+ c.get_sha1(name)
+
+
+
+
+
class cmd_upgrade(Command):
"""Upgrade branch storage to current format.
=== modified file 'bzrlib/trace.py'
--- a/bzrlib/trace.py 2005-07-08 07:09:32 +0000
+++ b/bzrlib/trace.py 2005-07-20 17:31:25 +0000
@@ -52,8 +52,9 @@
def _write_trace(msg):
- if _tracefile:
- _tracefile.write(_logprefix + msg + '\n')
+ if 0:
+ if _tracefile:
+ _tracefile.write(_logprefix + msg + '\n')
def warning(msg):
More information about the Pkg-bazaar-commits
mailing list