Show More
@@ -114,11 +114,11 b' def _takefullsample(repo, dag, headrevs,' | |||||
114 | sample = set(repo.revs('heads(%ld)', revs)) |
|
114 | sample = set(repo.revs('heads(%ld)', revs)) | |
115 |
|
115 | |||
116 | # update from heads |
|
116 | # update from heads | |
117 | _updatesample(dag, revs, dag.headsetofconnecteds(revs), sample) |
|
117 | revsheads = set(repo.revs('heads(%ld)', revs)) | |
|
118 | _updatesample(dag, revs, revsheads, sample) | |||
118 | # update from roots |
|
119 | # update from roots | |
119 | inverteddag = dag.inverse() |
|
120 | revsroots = set(repo.revs('roots(%ld)', revs)) | |
120 | _updatesample(inverteddag, revs, inverteddag.headsetofconnecteds(revs), |
|
121 | _updatesample(dag.inverse(), revs, revsroots, sample) | |
121 | sample) |
|
|||
122 | assert sample |
|
122 | assert sample | |
123 | sample = _limitsample(sample, size) |
|
123 | sample = _limitsample(sample, size) | |
124 | if len(sample) < size: |
|
124 | if len(sample) < size: |
General Comments 0
You need to be logged in to leave comments.
Login now