# HG changeset patch # User Martin von Zweigbergk # Date 1520178011 28800 # Node ID 0968e400406c4eecd717b760e0588048df71c3b2 # Parent bf485b70d0aef13b1b6cccb4770fea664af12661 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 diff -r bf485b70d0ae -r 0968e400406c 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'))