changeset 34746:54fa3db5becf

configitems: register the 'progress.format' config
author Boris Feld <boris.feld@octobus.net>
date Wed, 11 Oct 2017 22:53:17 +0200
parents 0b46440b1b45
children 5cf98daad7b1
files mercurial/configitems.py mercurial/progress.py
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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')