Show More
@@ -325,7 +325,7 def _children(repo, narrow, s): | |||
|
325 | 325 | cs = set() |
|
326 | 326 | pr = repo.changelog.parentrevs |
|
327 | 327 | s = set(s) |
|
328 |
for r in |
|
|
328 | for r in xrange(len(repo)): | |
|
329 | 329 | for p in pr(r): |
|
330 | 330 | if p in s: |
|
331 | 331 | cs.add(r) |
@@ -776,7 +776,7 def roots(repo, subset, x): | |||
|
776 | 776 | """``roots(set)`` |
|
777 | 777 | Changesets with no parent changeset in set. |
|
778 | 778 | """ |
|
779 |
s = getset(repo, |
|
|
779 | s = getset(repo, xrange(len(repo)), x) | |
|
780 | 780 | cs = _children(repo, s, s) |
|
781 | 781 | return [r for r in s if r not in cs] |
|
782 | 782 |
General Comments 0
You need to be logged in to leave comments.
Login now