configitems: register the 'progress.format' config
authorBoris Feld <boris.feld@octobus.net>
Wed, 11 Oct 2017 22:53:17 +0200
changeset 34746 54fa3db5becf
parent 34745 0b46440b1b45
child 34747 5cf98daad7b1
configitems: register the 'progress.format' config
mercurial/configitems.py
mercurial/progress.py
--- a/mercurial/configitems.py	Wed Oct 11 22:51:23 2017 +0200
+++ b/mercurial/configitems.py	Wed Oct 11 22:53:17 2017 +0200
@@ -591,6 +591,9 @@
 coreconfigitem('progress', 'estimateinterval',
     default=60.0,
 )
+coreconfigitem('progress', 'format',
+    default=lambda: ['topic', 'bar', 'number', 'estimate'],
+)
 coreconfigitem('progress', 'refresh',
     default=0.1,
 )
--- a/mercurial/progress.py	Wed Oct 11 22:51:23 2017 +0200
+++ b/mercurial/progress.py	Wed Oct 11 22:53:17 2017 +0200
@@ -101,9 +101,7 @@
         self.changedelay = max(3 * self.refresh,
                                float(self.ui.config(
                                    'progress', 'changedelay')))
-        self.order = self.ui.configlist(
-            'progress', 'format',
-            default=['topic', 'bar', 'number', 'estimate'])
+        self.order = self.ui.configlist('progress', 'format')
         self.estimateinterval = self.ui.configwith(
             float, 'progress', 'estimateinterval')