comparison 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
comparison
equal deleted inserted replaced
34313:f428c347d32b 34314:a667f0ca1d5f
357 default=3, 357 default=3,
358 ) 358 )
359 coreconfigitem('progress', 'disable', 359 coreconfigitem('progress', 'disable',
360 default=False, 360 default=False,
361 ) 361 )
362 coreconfigitem('progress', 'estimateinterval',
363 default=60.0,
364 )
362 coreconfigitem('progress', 'refresh', 365 coreconfigitem('progress', 'refresh',
363 default=0.1, 366 default=0.1,
364 ) 367 )
365 coreconfigitem('progress', 'width', 368 coreconfigitem('progress', 'width',
366 default=dynamicdefault, 369 default=dynamicdefault,