##// END OF EJS Templates
setdiscovery: drop unused 'initial' argument for '_takequicksample'...
Pierre-Yves David -
r23806:d6cbbe3b default
parent child Browse files
Show More
@@ -84,15 +84,11 b' def _setupsample(dag, nodes, size):'
84 84 return always, None, desiredlen
85 85 return always, set(), desiredlen
86 86
87 def _takequicksample(dag, nodes, size, initial):
87 def _takequicksample(dag, nodes, size):
88 88 always, sample, desiredlen = _setupsample(dag, nodes, size)
89 89 if sample is None:
90 90 return always
91 if initial:
92 fromset = None
93 else:
94 fromset = nodes
95 _updatesample(dag, fromset, sample, always, quicksamplesize=desiredlen)
91 _updatesample(dag, None, sample, always, quicksamplesize=desiredlen)
96 92 sample.update(always)
97 93 return sample
98 94
@@ -207,8 +203,7 b' def findcommonheads(ui, local, remote,'
207 203 else:
208 204 # use even cheaper initial sample
209 205 ui.debug("taking quick initial sample\n")
210 sample = _takequicksample(dag, undecided, size=initialsamplesize,
211 initial=True)
206 sample = _takequicksample(dag, undecided, size=initialsamplesize)
212 207 targetsize = initialsamplesize
213 208 sample = _limitsample(sample, targetsize)
214 209
General Comments 0
You need to be logged in to leave comments. Login now