Rev 12: Debugging can be good. in http://people.ubuntu.com/~robertc/baz2.0/plugins/index2/trunk

Robert Collins robertc at robertcollins.net
Wed Jul 2 07:13:11 BST 2008


At http://people.ubuntu.com/~robertc/baz2.0/plugins/index2/trunk

------------------------------------------------------------
revno: 12
revision-id: robertc at robertcollins.net-20080702061310-nsy8pilywn78oewj
parent: robertc at robertcollins.net-20080702060810-2zn70b8n5dbc1jf8
committer: Robert Collins <robertc at robertcollins.net>
branch nick: trunk
timestamp: Wed 2008-07-02 16:13:10 +1000
message:
  Debugging can be good.
modified:
  btree_index.py                 index.py-20080624222253-p0x5f92uyh5hw734-7
=== modified file 'btree_index.py'
--- a/btree_index.py	2008-07-02 06:08:10 +0000
+++ b/btree_index.py	2008-07-02 06:13:10 +0000
@@ -92,6 +92,9 @@
         bloom_bytes = ":bloom:\n" + self.bloom._array.tostring()
         if self.writer.write_reserved(bloom_bytes):
             raise AssertionError("Not enough space for bloom filter.")
+        if 'index' in debug.debug_flags:
+            trace.mutter_callsite(3,
+                "Finished node with bloom filter %r." % self.bloom)
         _BuilderRow.finish_node(self)
 
 




More information about the bazaar-commits mailing list