Mercurial > public > mercurial-scm > hg-stable
diff mercurial/setdiscovery.py @ 46300:f17b6e40a775
discovery: add a discovery.grow-sample.rate
This allow to control the effect of the growth rate on the discovery process
while doing analysis.
Differential Revision: https://phab.mercurial-scm.org/D9799
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 16 Jan 2021 00:48:11 +0100 |
parents | 397e39ad0174 |
children | 9689d3f3f8c5 |
line wrap: on
line diff
--- 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