##// END OF EJS Templates
revset: make commonancestors(x + x^) be ::(x^), not ::x...
Valentin Gatien-Baron -
r39859:cb5134f2 stable
parent child Browse files
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 h:
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)
@@ -1069,7 +1069,6 b' test common ancestors'
1069 2
1069 2
1070 4
1070 4
1071 8
1071 8
1072 9
1073
1072
1074 test ancestor variants of empty revision
1073 test ancestor variants of empty revision
1075
1074
General Comments 0
You need to be logged in to leave comments. Login now