Mercurial > hg
diff tests/test-command-template @ 4352:051fb8c2567c
command line templates: add formatnode filter
This will print a full hash node with --debug and a short one otherwise.
Use it with some default templates and in map-cmdline.default to print
the parents. This should fix issue538.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Mon, 16 Apr 2007 13:00:23 -0300 |
parents | 3380eb6d7c32 |
children | 5e857d72d3ac |
line wrap: on
line diff
--- a/tests/test-command-template Mon Apr 16 13:00:23 2007 -0300 +++ b/tests/test-command-template Mon Apr 16 13:00:23 2007 -0300 @@ -96,6 +96,16 @@ hg log --template '{desc|firstline}\n' hg log --template '{node|short}\n' +echo '# formatnode filter works' +echo '# quiet' +hg -q log -r 0 --template '#node|formatnode#\n' +echo '# normal' +hg log -r 0 --template '#node|formatnode#\n' +echo '# verbose' +hg -v log -r 0 --template '#node|formatnode#\n' +echo '# debug' +hg --debug log -r 0 --template '#node|formatnode#\n' + echo '# error on syntax' echo 'x = "f' >> t hg log