Rev 98: Tweak messages so we know what revs are getting mapped in http://bzr.arbash-meinel.com/plugins/history_db
John Arbash Meinel
john at arbash-meinel.com
Thu Apr 15 18:12:08 BST 2010
At http://bzr.arbash-meinel.com/plugins/history_db
------------------------------------------------------------
revno: 98
revision-id: john at arbash-meinel.com-20100415171143-0em7rosrfc3401j3
parent: john at arbash-meinel.com-20100414183912-0izjujw5k9glmxri
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: history_db
timestamp: Thu 2010-04-15 12:11:43 -0500
message:
Tweak messages so we know what revs are getting mapped
-------------- next part --------------
=== modified file '__init__.py'
--- a/__init__.py 2010-04-14 18:37:32 +0000
+++ b/__init__.py 2010-04-15 17:11:43 +0000
@@ -434,7 +434,7 @@
"""See Branch._do_revision_id_to_dotted_revno"""
revno = self._partial_revision_id_to_revno_cache.get(revision_id, None)
if revno is not None:
- trace.note('history_db rev=>dotted cached')
+ trace.note('history_db rev=>dotted cached %s' % (revno,))
return revno
t0 = time.clock()
query = _get_querier(self)
@@ -445,8 +445,9 @@
t1 = time.clock()
revision_id_map = query.get_dotted_revno_range_multi([revision_id])
t2 = time.clock()
- trace.note('history_db rev=>dotted took %.3fs, %.3fs to init,'
- ' %.3fs to query' % (t2-t0, t1-t0, t2-t1))
+ trace.note('history_db rev=>dotted %s took %.3fs, %.3fs to init,'
+ ' %.3fs to query' % (revision_id_map.values(),
+ t2-t0, t1-t0, t2-t1))
self._partial_revision_id_to_revno_cache.update(revision_id_map)
if revision_id not in revision_id_map:
More information about the bazaar-commits
mailing list