diff hgext/progress.py @ 13148:ab5fcc473fd1

progress: include time estimate as part of the default progress format
author Augie Fackler <durin42@gmail.com>
date Wed, 15 Dec 2010 10:22:54 -0600
parents 082f5be788d9
children e11c14f14491
line wrap: on
line diff
--- 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):