[PATCH 4 of 5] progress: include time estimate as part of the default progress format

Augie Fackler durin42 at gmail.com
Wed Dec 15 11:25:36 CST 2010


# HG changeset patch
# User Augie Fackler <durin42 at gmail.com>
# Date 1292430174 21600
# Node ID 24f467fa960df1f4288e89bbab76e36637b94581
# Parent  114f2d42d52214adc881dcd63ffa6100310cb76a
progress: include time estimate as part of the default progress format

diff --git a/hgext/progress.py b/hgext/progress.py
--- a/hgext/progress.py
+++ b/hgext/progress.py
@@ -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):


More information about the Mercurial-devel mailing list