setdiscovery: remove unnecessary sample size limiting
authorMartin von Zweigbergk <martinvonz@google.com>
Sun, 04 Mar 2018 07:40:11 -0800
changeset 36717 0968e400406c
parent 36716 bf485b70d0ae
child 36718 59802fa590db
setdiscovery: remove unnecessary sample size limiting Both _takequicksample() and _takefullsample() already limit their result to the request size, so there's no need to let the caller do that again. Differential Revision: https://phab.mercurial-scm.org/D2645
mercurial/setdiscovery.py
--- a/mercurial/setdiscovery.py	Sun Mar 04 07:39:46 2018 -0800
+++ b/mercurial/setdiscovery.py	Sun Mar 04 07:40:11 2018 -0800
@@ -221,7 +221,6 @@
             sample = list(undecided)
         else:
             sample = samplefunc(dag, undecided, targetsize)
-            sample = _limitsample(sample, targetsize)
 
         roundtrips += 1
         ui.progress(_('searching'), roundtrips, unit=_('queries'))