--- 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