Show More
@@ -632,7 +632,10 b' def commonancestors(repo, subset, x):' | |||
|
632 | 632 | |
|
633 | 633 | """ |
|
634 | 634 | # only wants the heads of the set passed in |
|
635 |
|
|
|
635 | h = heads(repo, fullreposet(repo), x, anyorder) | |
|
636 | if not h: | |
|
637 | return baseset() | |
|
638 | for r in h: | |
|
636 | 639 | subset &= dagop.revancestors(repo, baseset([r])) |
|
637 | 640 | |
|
638 | 641 | return subset |
@@ -1063,6 +1063,12 b' test common ancestors' | |||
|
1063 | 1063 | 8 |
|
1064 | 1064 | 9 |
|
1065 | 1065 | |
|
1066 | test ancestor variants of empty revision | |
|
1067 | ||
|
1068 | $ log 'ancestor(none())' | |
|
1069 | $ log 'ancestors(none())' | |
|
1070 | $ log 'commonancestors(none())' | |
|
1071 | ||
|
1066 | 1072 | test ancestors with depth limit |
|
1067 | 1073 | |
|
1068 | 1074 | (depth=0 selects the node itself) |
General Comments 0
You need to be logged in to leave comments.
Login now