diff mercurial/repair.py @ 11202:f974fe896921

strip: hide unbundle messages by default Unbundling is an internal implementation detail for strip, only show them with --verbose.
author Matt Mackall <mpm@selenic.com>
date Thu, 20 May 2010 13:27:28 -0500
parents 12e5149cafca
children e83aff248c17
line wrap: on
line diff
--- a/mercurial/repair.py	Thu May 20 12:21:35 2010 -0500
+++ b/mercurial/repair.py	Thu May 20 13:27:28 2010 -0500
@@ -136,10 +136,15 @@
             raise
 
         if saveheads or extranodes:
-            ui.status(_("adding branch\n"))
+            ui.note(_("adding branch\n"))
             f = open(chgrpfile, "rb")
             gen = changegroup.readbundle(f, chgrpfile)
+            if not repo.ui.verbose:
+                # silence internal shuffling chatter
+                repo.ui.pushbuffer()
             repo.addchangegroup(gen, 'strip', 'bundle:' + chgrpfile, True)
+            if not repo.ui.verbose:
+                repo.ui.popbuffer()
             f.close()
             if backup != "strip":
                 os.unlink(chgrpfile)