Mercurial > hg
diff tests/test-command-template.t @ 37105:e7bc0667c521
formatter: make 'originalnode' a thing in log-like templates
mapping['node'] doesn't work since {node} is computed dynamically in non-web
templates.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 17 Mar 2018 17:54:33 +0900 |
parents | a318bb154d42 |
children | 08e042f0a67c |
line wrap: on
line diff
--- a/tests/test-command-template.t Sat Mar 17 17:41:07 2018 +0900 +++ b/tests/test-command-template.t Sat Mar 17 17:54:33 2018 +0900 @@ -4199,6 +4199,13 @@ hg: parse error: invalid argument for revspec [255] +Test 'originalnode' + + $ hg log -r 1 -T '{revset("null") % "{node|short} {originalnode|short}"}\n' + 000000000000 bcc7ff960b8e + $ hg log -r 0 -T '{manifest % "{node} {originalnode}"}\n' + a0c8bcbbb45c63b90b70ad007bf38961f64f2af0 f7769ec2ab975ad19684098ad1ffd9b81ecc71a1 + Test files function $ hg log -T "{rev}\n{join(files('*'), '\n')}\n"