Show More
@@ -631,13 +631,11 b' def commonancestors(repo, subset, x):' | |||||
631 | in the repo (whereas we want "::x *and* ::y"). |
|
631 | in the repo (whereas we want "::x *and* ::y"). | |
632 |
|
632 | |||
633 | """ |
|
633 | """ | |
634 | # only wants the heads of the set passed in |
|
634 | startrevs = getset(repo, fullreposet(repo), x, order=anyorder) | |
635 | h = heads(repo, fullreposet(repo), x, anyorder) |
|
635 | if not startrevs: | |
636 | if not h: |
|
|||
637 | return baseset() |
|
636 | return baseset() | |
638 |
for r in |
|
637 | for r in startrevs: | |
639 | subset &= dagop.revancestors(repo, baseset([r])) |
|
638 | subset &= dagop.revancestors(repo, baseset([r])) | |
640 |
|
||||
641 | return subset |
|
639 | return subset | |
642 |
|
640 | |||
643 | @predicate('contains(pattern)', weight=100) |
|
641 | @predicate('contains(pattern)', weight=100) |
General Comments 0
You need to be logged in to leave comments.
Login now