Rev 138: mutter() when we do on-the-fly import in http://bazaar.launchpad.net/%2Bbranch/bzr-history-db

John Arbash Meinel john at arbash-meinel.com
Tue May 31 08:52:52 UTC 2011


At http://bazaar.launchpad.net/%2Bbranch/bzr-history-db

------------------------------------------------------------
revno: 138
revision-id: john at arbash-meinel.com-20110531085241-yy9447wxus836ej9
parent: john at arbash-meinel.com-20110531075129-puu54613p5gm3q27
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: bzr-history-db
timestamp: Tue 2011-05-31 10:52:41 +0200
message:
  mutter() when we do on-the-fly import
-------------- next part --------------
=== modified file 'history_db.py'
--- a/history_db.py	2011-05-31 07:51:29 +0000
+++ b/history_db.py	2011-05-31 08:52:41 +0000
@@ -1222,9 +1222,11 @@
             importer.do_import()
             tdelta = time.time() - t
             if 'history_db' in debug.debug_flags:
-                trace.note('imported %d nodes on-the-fly in %.3fs'
-                           % (importer._stats.get('total_nodes_inserted', 0),
-                              tdelta))
+                info = trace.note
+            else:
+                info = trace.mutter
+            info('imported %d nodes on-the-fly in %.3fs'
+                 % (importer._stats.get('total_nodes_inserted', 0), tdelta))
             self._db_conn = importer._db_conn
             self._cursor = importer._cursor
             self._branch_tip_db_id = self._get_db_id(self._branch_tip_rev_id)



More information about the bazaar-commits mailing list