progress: mark experimental option
authorMatt Mackall <mpm@selenic.com>
Thu, 25 Jun 2015 17:56:54 -0500
changeset 26272 56674fd6dabc00a6614e31c8e23c891fb6c68099
parent 26271 c55eac3f388d631b82982462ce482ee519b6add7
child 26273 0ae07173881d637d688f402ce45315ecbd2ff88d
push id16
push usergszorc@mozilla.com
push dateSat, 08 Aug 2015 03:14:19 +0000
progress: mark experimental option
mercurial/progress.py
--- a/mercurial/progress.py
+++ b/mercurial/progress.py
@@ -182,16 +182,17 @@ class progbar(object):
     def estimate(self, topic, pos, total, now):
         if total is None:
             return ''
         initialpos = self.startvals[topic]
         target = total - initialpos
         delta = pos - initialpos
         if delta > 0:
             elapsed = now - self.starttimes[topic]
+            # experimental config: progress.estimate
             if elapsed > float(
                 self.ui.config('progress', 'estimate', default=2)):
                 seconds = (elapsed * (target - delta)) // delta + 1
                 return fmtremaining(seconds)
         return ''
 
     def speed(self, topic, pos, unit, now):
         initialpos = self.startvals[topic]