changeset 39832 | 85a474adaf26 |
parent 38855 | 7848f284b211 |
parent 39805 | 823f34acfd46 |
child 40311 | 4aa04d009167 |
39831:7a9e2d85f475 | 39832:85a474adaf26 |
---|---|
1047 0 |
1047 0 |
1048 1 |
1048 1 |
1049 2 |
1049 2 |
1050 4 |
1050 4 |
1051 |
1051 |
1052 $ hg log -T '{rev}\n' -r 'commonancestors(head())' |
1052 $ hg log -T '{rev}\n' -r 'commonancestors(heads(all()))' |
1053 0 |
1053 0 |
1054 1 |
1054 1 |
1055 2 |
1055 2 |
1056 4 |
1056 4 |
1057 |
1057 |
1060 1 |
1060 1 |
1061 2 |
1061 2 |
1062 4 |
1062 4 |
1063 8 |
1063 8 |
1064 9 |
1064 9 |
1065 |
|
1066 $ hg log -T '{rev}\n' -r 'commonancestors(8 + 9)' |
|
1067 0 |
|
1068 1 |
|
1069 2 |
|
1070 4 |
|
1071 8 |
|
1072 |
|
1073 test the specialized implementation of heads(commonancestors(..)) |
|
1074 (2 gcas is tested in test-merge-criss-cross.t) |
|
1075 |
|
1076 $ hg log -T '{rev}\n' -r 'heads(commonancestors(7 + 9))' |
|
1077 4 |
|
1078 $ hg log -T '{rev}\n' -r 'heads(commonancestors(heads(all())))' |
|
1079 4 |
|
1080 $ hg log -T '{rev}\n' -r 'heads(commonancestors(9))' |
|
1081 9 |
|
1082 $ hg log -T '{rev}\n' -r 'heads(commonancestors(8 + 9))' |
|
1083 8 |
|
1065 |
1084 |
1066 test ancestor variants of empty revision |
1085 test ancestor variants of empty revision |
1067 |
1086 |
1068 $ log 'ancestor(none())' |
1087 $ log 'ancestor(none())' |
1069 $ log 'ancestors(none())' |
1088 $ log 'ancestors(none())' |
1070 $ log 'commonancestors(none())' |
1089 $ log 'commonancestors(none())' |
1090 $ log 'heads(commonancestors(none()))' |
|
1071 |
1091 |
1072 test ancestors with depth limit |
1092 test ancestors with depth limit |
1073 |
1093 |
1074 (depth=0 selects the node itself) |
1094 (depth=0 selects the node itself) |
1075 |
1095 |