Show More
@@ -150,7 +150,7 b' def _takefullsample(repo, headrevs, revs' | |||||
150 | _updatesample(revs, revsroots, sample, children.__getitem__) |
|
150 | _updatesample(revs, revsroots, sample, children.__getitem__) | |
151 | assert sample |
|
151 | assert sample | |
152 | sample = _limitsample(sample, size) |
|
152 | sample = _limitsample(sample, size) | |
153 |
if len(sample) < |
|
153 | if len(sample) < size: | |
154 | more = size - len(sample) |
|
154 | more = size - len(sample) | |
155 | sample.update(random.sample(list(revs - sample), more)) |
|
155 | sample.update(random.sample(list(revs - sample), more)) | |
156 | return sample |
|
156 | return sample |
General Comments 0
You need to be logged in to leave comments.
Login now