Mercurial > public > mercurial-scm > hg
diff mercurial/setdiscovery.py @ 46359:0600e8467101
discovery: add config options to control sample size
This get useful for running analysis of the current algorithm.
Differential Revision: https://phab.mercurial-scm.org/D9813
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 17 Jan 2021 23:21:33 +0100 |
parents | 6ee9bd69ff7f |
children | f165105400d0 |
line wrap: on
line diff
--- a/mercurial/setdiscovery.py Tue Jan 19 00:20:42 2021 +0100 +++ b/mercurial/setdiscovery.py Sun Jan 17 23:21:33 2021 +0100 @@ -286,8 +286,6 @@ ui, local, remote, - initialsamplesize=100, - fullsamplesize=200, abortwhenunrelated=True, ancestorsof=None, audit=None, @@ -315,7 +313,8 @@ ownheads = [rev for rev in cl.headrevs() if rev != nullrev] initial_head_exchange = ui.configbool(b'devel', b'discovery.exchange-heads') - + initialsamplesize = ui.configint(b'devel', b'discovery.sample-size.initial') + fullsamplesize = ui.configint(b'devel', b'discovery.sample-size') # We also ask remote about all the local heads. That set can be arbitrarily # large, so we used to limit it size to `initialsamplesize`. We no longer # do as it proved counter productive. The skipped heads could lead to a