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