Mercurial > public > mercurial-scm > hg
comparison mercurial/debugcommands.py @ 46805: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 | 13d973690ecd |
children | d4ba4d51f85f |
comparison
equal
deleted
inserted
replaced
46804:f165105400d0 | 46805:2b1b8f3e6510 |
---|---|
1022 * devel.discovery.grow-sample=True | 1022 * devel.discovery.grow-sample=True |
1023 | 1023 |
1024 If False, the sample size used in set discovery will not be increased | 1024 If False, the sample size used in set discovery will not be increased |
1025 through the process | 1025 through the process |
1026 | 1026 |
1027 * devel.discovery.grow-sample.dynamic=True | |
1028 | |
1029 When discovery.grow-sample.dynamic is True, the default, the sample size is | |
1030 adapted to the shape of the undecided set (it is set to the max of: | |
1031 <target-size>, len(roots(undecided)), len(heads(undecided) | |
1032 | |
1027 * devel.discovery.grow-sample.rate=1.05 | 1033 * devel.discovery.grow-sample.rate=1.05 |
1028 | 1034 |
1029 the rate at which the sample grow | 1035 the rate at which the sample grow |
1030 | 1036 |
1031 * devel.discovery.randomize=True | 1037 * devel.discovery.randomize=True |