##// END OF EJS Templates
discovery: be more conservative when adjusting the sample size...
marmoute -
r42618:b9ff059f default
parent child Browse files
Show More
@@ -242,13 +242,13 class partialdiscovery(object):
242 242
243 243 # update from roots
244 244 revsroots = set(repo.revs('roots(%ld)', revs))
245 if not self._respectsize:
246 size = max(size, len(revsroots))
247
248 245 childrenrevs = self._childrengetter()
249
250 246 _updatesample(revs, revsroots, sample, childrenrevs)
251 247 assert sample
248
249 if not self._respectsize:
250 size = max(size, min(len(revsroots), len(revsheads)))
251
252 252 sample = _limitsample(sample, size)
253 253 if len(sample) < size:
254 254 more = size - len(sample)
General Comments 0
You need to be logged in to leave comments. Login now