Mercurial > hg
comparison tests/test-revset.t @ 39799:f28812c708a5 stable
revset: fix commonancestor test so it demonstrates correct behavior
The problem is that hg log -r 'head()' is every changeset in the
repository, because in this test repository, every changeset has a
different branch. The author probably assumed all commits were on the
default branch, and that they were getting topological heads, 7 and 9.
As a result, this test was showing that the common ancestors of
0:9 are 0+1+2+4, which is not correct (next commit will test this).
Differential Revision: https://phab.mercurial-scm.org/D4736
author | Valentin Gatien-Baron <vgatien-baron@janestreet.com> |
---|---|
date | Tue, 25 Sep 2018 16:03:14 -0400 |
parents | e4b270a32ba8 |
children | 572cd30eaffb |
comparison
equal
deleted
inserted
replaced
39547:41ac8ea1bdd7 | 39799:f28812c708a5 |
---|---|
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 |