changeset 22304 | 5678b0e3608f |
parent 21944 | 0483ff40e326 |
child 22427 | bd15932846a4 |
--- a/tests/test-command-template.t Tue Aug 26 22:03:32 2014 +0200 +++ b/tests/test-command-template.t Sat Aug 23 21:23:02 2014 +0900 @@ -1834,6 +1834,15 @@ 1 Parents: 0 0 Parents: + $ cat >> .hg/hgrc <<EOF + > [revsetalias] + > myparents(\$1) = parents(\$1) + > EOF + $ hg log --template '{rev} Parents: {revset("myparents(%s)", rev)}\n' + 2 Parents: 1 + 1 Parents: 0 + 0 Parents: + $ hg log --template 'Rev: {rev}\n{revset("::%s", rev) % "Ancestor: {revision}\n"}\n' Rev: 2 Ancestor: 0