Mercurial > public > mercurial-scm > hg
diff mercurial/configitems.py @ 34314:a667f0ca1d5f
progress: make ETA only consider progress made in the last minute
This patch limits the estimate time interval to roughly the last minute
(configurable by `estimateinterval`) to be more practical. See the test
change for why this is better.
.. feature:: Estimated time is more accurate with non-linear progress
Differential Revision: https://phab.mercurial-scm.org/D820
author | Jun Wu <quark@fb.com> |
---|---|
date | Wed, 27 Sep 2017 15:14:59 -0700 |
parents | f428c347d32b |
children | 7de145167ae7 |
line wrap: on
line diff
--- a/mercurial/configitems.py Wed Sep 27 14:30:58 2017 -0700 +++ b/mercurial/configitems.py Wed Sep 27 15:14:59 2017 -0700 @@ -359,6 +359,9 @@ coreconfigitem('progress', 'disable', default=False, ) +coreconfigitem('progress', 'estimateinterval', + default=60.0, +) coreconfigitem('progress', 'refresh', default=0.1, )