configitems: register the 'progress.clear-complete' config
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 30 Jun 2017 03:44:02 +0200
changeset 33249 391da1416038
parent 33248 be00b61e4c4a
child 33250 bbc57a7e8823
configitems: register the 'progress.clear-complete' config
mercurial/configitems.py
mercurial/progress.py
--- a/mercurial/configitems.py	Fri Jun 30 03:44:01 2017 +0200
+++ b/mercurial/configitems.py	Fri Jun 30 03:44:02 2017 +0200
@@ -149,6 +149,9 @@
 coreconfigitem('progress', 'assume-tty',
     default=False,
 )
+coreconfigitem('progress', 'clear-complete',
+    default=True,
+)
 coreconfigitem('server', 'bundle1',
     default=True,
 )
--- a/mercurial/progress.py	Fri Jun 30 03:44:01 2017 +0200
+++ b/mercurial/progress.py	Fri Jun 30 03:44:02 2017 +0200
@@ -191,7 +191,7 @@
     def complete(self):
         if not shouldprint(self.ui):
             return
-        if self.ui.configbool('progress', 'clear-complete', default=True):
+        if self.ui.configbool('progress', 'clear-complete'):
             self.clear()
         else:
             self._writeerr('\n')