diff mercurial/progress.py @ 41144:7b80406b8271

progress: move cached debug flag from progress.progbar to scmutil.progress It's simpler this way. One possible drawback (and a possisble advantage) is that we now check the debug flag once per topic, so processes that generate new topics all the time will still check the flag frequently. Differential Revision: https://phab.mercurial-scm.org/D5528
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 08 Jan 2019 00:12:08 -0800
parents 6603de284b0a
children 2372284d9457
line wrap: on
line diff
--- a/mercurial/progress.py	Mon Jan 07 23:55:26 2019 -0800
+++ b/mercurial/progress.py	Tue Jan 08 00:12:08 2019 -0800
@@ -104,8 +104,6 @@
         self.order = self.ui.configlist('progress', 'format')
         self.estimateinterval = self.ui.configwith(
             float, 'progress', 'estimateinterval')
-        # developer config: progress.debug
-        self.debug = self.ui.configbool('progress', 'debug')
 
     def show(self, now, topic, pos, item, unit, total):
         if not shouldprint(self.ui):