Show More
@@ -152,6 +152,9 b" coreconfigitem('progress', 'assume-tty'," | |||||
152 | coreconfigitem('progress', 'clear-complete', |
|
152 | coreconfigitem('progress', 'clear-complete', | |
153 | default=True, |
|
153 | default=True, | |
154 | ) |
|
154 | ) | |
|
155 | coreconfigitem('progress', 'estimate', | |||
|
156 | default=2, | |||
|
157 | ) | |||
155 | coreconfigitem('server', 'bundle1', |
|
158 | coreconfigitem('server', 'bundle1', | |
156 | default=True, |
|
159 | default=True, | |
157 | ) |
|
160 | ) |
@@ -217,7 +217,7 b' class progbar(object):' | |||||
217 | elapsed = now - self.starttimes[topic] |
|
217 | elapsed = now - self.starttimes[topic] | |
218 | # experimental config: progress.estimate |
|
218 | # experimental config: progress.estimate | |
219 | if elapsed > float( |
|
219 | if elapsed > float( | |
220 |
self.ui.config('progress', 'estimate' |
|
220 | self.ui.config('progress', 'estimate')): | |
221 | seconds = (elapsed * (target - delta)) // delta + 1 |
|
221 | seconds = (elapsed * (target - delta)) // delta + 1 | |
222 | return fmtremaining(seconds) |
|
222 | return fmtremaining(seconds) | |
223 | return '' |
|
223 | return '' | |
@@ -227,7 +227,7 b' class progbar(object):' | |||||
227 | delta = pos - initialpos |
|
227 | delta = pos - initialpos | |
228 | elapsed = now - self.starttimes[topic] |
|
228 | elapsed = now - self.starttimes[topic] | |
229 | if elapsed > float( |
|
229 | if elapsed > float( | |
230 |
self.ui.config('progress', 'estimate' |
|
230 | self.ui.config('progress', 'estimate')): | |
231 | return _('%d %s/sec') % (delta / elapsed, unit) |
|
231 | return _('%d %s/sec') % (delta / elapsed, unit) | |
232 | return '' |
|
232 | return '' | |
233 |
|
233 |
General Comments 0
You need to be logged in to leave comments.
Login now