comparison mercurial/configitems.py @ 46806:2b1b8f3e6510

setdiscovery: add a discovery.grow-sample.dynamic option The current discovery dynamically adapt to complex situations. This makes it quick and effective, but also harder so study the effects of other improvements in such complex situation. So we add a new option to control this too. Differential Revision: https://phab.mercurial-scm.org/D10233
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 17 Mar 2021 19:06:00 +0100
parents 471cd86c8eb4
children 84a93fa7ecfd
comparison
equal deleted inserted replaced
46805:f165105400d0 46806:2b1b8f3e6510
735 coreconfigitem( 735 coreconfigitem(
736 b'devel', 736 b'devel',
737 b'discovery.grow-sample', 737 b'discovery.grow-sample',
738 default=True, 738 default=True,
739 ) 739 )
740 # When discovery.grow-sample.dynamic is True, the default, the sample size is
741 # adapted to the shape of the undecided set (it is set to the max of:
742 # <target-size>, len(roots(undecided)), len(heads(undecided)
743 coreconfigitem(
744 b'devel',
745 b'discovery.grow-sample.dynamic',
746 default=True,
747 )
740 # discovery.grow-sample.rate control the rate at which the sample grow 748 # discovery.grow-sample.rate control the rate at which the sample grow
741 coreconfigitem( 749 coreconfigitem(
742 b'devel', 750 b'devel',
743 b'discovery.grow-sample.rate', 751 b'discovery.grow-sample.rate',
744 default=1.05, 752 default=1.05,