changeset 36717:0968e400406c

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
author Martin von Zweigbergk <martinvonz@google.com>
date Sun, 04 Mar 2018 07:40:11 -0800
parents bf485b70d0ae
children 59802fa590db
files mercurial/setdiscovery.py
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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'))