[Pkg-bazaar-commits] ./bzr/unstable r116: fix up debug output for check command

mbp at sourcefrog.net mbp at sourcefrog.net
Fri Apr 10 07:51:09 UTC 2009


------------------------------------------------------------
revno: 116
committer: mbp at sourcefrog.net
timestamp: Mon 2005-03-28 14:16:10 +1000
message:
  fix up debug output for check command
modified:
  bzrlib/check.py
-------------- next part --------------
=== modified file 'bzrlib/check.py'
--- a/bzrlib/check.py	2005-03-28 04:08:13 +0000
+++ b/bzrlib/check.py	2005-03-28 04:16:10 +0000
@@ -22,19 +22,19 @@
 
 
 import bzrlib
-
+from trace import mutter
 
 def _ass(a, b):
     if a != b:
         bzrlib.errors.bailout("check failed: %r != %r" % (a, b))
 
-def check(branch, verbose=True):
-    print 'checking tree %r' % branch.base
+def check(branch):
+    mutter('checking tree %r' % branch.base)
 
-    print 'checking entire revision history is present'
+    mutter('checking entire revision history is present')
     last_ptr = None
     for rid in branch.revision_history():
-        print '    revision {%s}' % rid
+        mutter('    revision {%s}' % rid)
         rev = branch.get_revision(rid)
         _ass(rev.revision_id, rid)
         _ass(rev.precursor, last_ptr)
@@ -45,7 +45,9 @@
     #check_patch_chaining()
     #check_patch_uniqueness()
     #check_inventory()
-    print ("tree looks OK")
+
+    mutter('branch %s is OK' % branch.base)
+
     ## TODO: Check that previous-inventory and previous-manifest
     ## are the same as those stored in the previous changeset.
 



More information about the Pkg-bazaar-commits mailing list