progress: include time estimate as part of the default progress format
authorAugie Fackler <durin42@gmail.com>
Wed, 15 Dec 2010 10:22:54 -0600
changeset 13148 ab5fcc473fd1
parent 13147 082f5be788d9
child 13149 735dd8e8a208
progress: include time estimate as part of the default progress format
hgext/progress.py
--- a/hgext/progress.py	Wed Dec 15 10:22:06 2010 -0600
+++ b/hgext/progress.py	Wed Dec 15 10:22:54 2010 -0600
@@ -28,7 +28,7 @@
   [progress]
   delay = 3 # number of seconds (float) before showing the progress bar
   refresh = 0.1 # time in seconds between refreshes of the progress bar
-  format = topic bar number # format of the progress bar
+  format = topic bar number estimate # format of the progress bar
   width = <none> # if set, the maximum width of the progress information
                  # (that is, min(width, term width) will be used)
   clear-complete = True # clear the progress bar after it's done
@@ -90,7 +90,7 @@
             'progress', 'refresh', default=0.1))
         self.order = self.ui.configlist(
             'progress', 'format',
-            default=['topic', 'bar', 'number'])
+            default=['topic', 'bar', 'number', 'estimate'])
 
     def show(self, now, topic, pos, item, unit, total):
         if not shouldprint(self.ui):