mercurial/setdiscovery.py
changeset 46300 f17b6e40a775
parent 46299 397e39ad0174
child 46301 9689d3f3f8c5
--- a/mercurial/setdiscovery.py	Sat Jan 16 00:29:17 2021 +0100
+++ b/mercurial/setdiscovery.py	Sat Jan 16 00:48:11 2021 +0100
@@ -290,7 +290,6 @@
     fullsamplesize=200,
     abortwhenunrelated=True,
     ancestorsof=None,
-    samplegrowth=1.05,
     audit=None,
 ):
     """Return a tuple (common, anyincoming, remoteheads) used to identify
@@ -300,6 +299,9 @@
     will be updated with extra data about the discovery, this is useful for
     debug.
     """
+
+    samplegrowth = float(ui.config(b'devel', b'discovery.grow-sample.rate'))
+
     start = util.timer()
 
     roundtrips = 0