Show More
@@ -242,13 +242,13 class partialdiscovery(object): | |||||
242 |
|
242 | |||
243 | # update from roots |
|
243 | # update from roots | |
244 | revsroots = set(repo.revs('roots(%ld)', revs)) |
|
244 | revsroots = set(repo.revs('roots(%ld)', revs)) | |
245 | if not self._respectsize: |
|
|||
246 | size = max(size, len(revsroots)) |
|
|||
247 |
|
||||
248 | childrenrevs = self._childrengetter() |
|
245 | childrenrevs = self._childrengetter() | |
249 |
|
||||
250 | _updatesample(revs, revsroots, sample, childrenrevs) |
|
246 | _updatesample(revs, revsroots, sample, childrenrevs) | |
251 | assert sample |
|
247 | assert sample | |
|
248 | ||||
|
249 | if not self._respectsize: | |||
|
250 | size = max(size, min(len(revsroots), len(revsheads))) | |||
|
251 | ||||
252 | sample = _limitsample(sample, size) |
|
252 | sample = _limitsample(sample, size) | |
253 | if len(sample) < size: |
|
253 | if len(sample) < size: | |
254 | more = size - len(sample) |
|
254 | more = size - len(sample) |
General Comments 0
You need to be logged in to leave comments.
Login now