Show More
@@ -325,7 +325,7 b' def _children(repo, narrow, s):' | |||||
325 | cs = set() |
|
325 | cs = set() | |
326 | pr = repo.changelog.parentrevs |
|
326 | pr = repo.changelog.parentrevs | |
327 | s = set(s) |
|
327 | s = set(s) | |
328 |
for r in |
|
328 | for r in xrange(len(repo)): | |
329 | for p in pr(r): |
|
329 | for p in pr(r): | |
330 | if p in s: |
|
330 | if p in s: | |
331 | cs.add(r) |
|
331 | cs.add(r) | |
@@ -776,7 +776,7 b' def roots(repo, subset, x):' | |||||
776 | """``roots(set)`` |
|
776 | """``roots(set)`` | |
777 | Changesets with no parent changeset in set. |
|
777 | Changesets with no parent changeset in set. | |
778 | """ |
|
778 | """ | |
779 |
s = getset(repo, |
|
779 | s = getset(repo, xrange(len(repo)), x) | |
780 | cs = _children(repo, s, s) |
|
780 | cs = _children(repo, s, s) | |
781 | return [r for r in s if r not in cs] |
|
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