diff mercurial/configitems.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 471cd86c8eb4
children 84a93fa7ecfd
line wrap: on
line diff
--- a/mercurial/configitems.py	Wed Mar 17 19:10:28 2021 +0100
+++ b/mercurial/configitems.py	Wed Mar 17 19:06:00 2021 +0100
@@ -737,6 +737,14 @@
     b'discovery.grow-sample',
     default=True,
 )
+# When discovery.grow-sample.dynamic is True, the default, the sample size is
+# adapted to the shape of the undecided set (it is set to the max of:
+# <target-size>, len(roots(undecided)), len(heads(undecided)
+coreconfigitem(
+    b'devel',
+    b'discovery.grow-sample.dynamic',
+    default=True,
+)
 # discovery.grow-sample.rate control the rate at which the sample grow
 coreconfigitem(
     b'devel',