diff mercurial/ui.py @ 25125:bd625cd4e5e7

progress: get the extremely verbose output out of default debug When the progress extension is not enabled, each call to 'ui.progress' used to issue a debug message. This results is a very verbose output and often redundant in tests. Dropping it makes tests less volatile to factor they do not meant to test. We had to alter the sed trick in 'test-rename-merge2.t'. Sed is used to drop all output from a certain point and hidding the progress output remove its anchor. So we anchor on something else.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Sat, 09 May 2015 23:40:40 -0700
parents 09049042ab99
children 3f0744eeaeaf
line wrap: on
line diff
--- a/mercurial/ui.py	Fri May 15 11:52:39 2015 +0800
+++ b/mercurial/ui.py	Sat May 09 23:40:40 2015 -0700
@@ -902,7 +902,7 @@
         termination.
         '''
 
-        if pos is None or not self.debugflag:
+        if pos is None or not self.configbool('progress', 'debug'):
             return
 
         if unit: