Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
4351:3380eb6d7c32 | 4352:051fb8c2567c |
---|---|
94 hg log --template '{date|isodate}\n' | 94 hg log --template '{date|isodate}\n' |
95 hg log --template '{date|rfc822date}\n' | 95 hg log --template '{date|rfc822date}\n' |
96 hg log --template '{desc|firstline}\n' | 96 hg log --template '{desc|firstline}\n' |
97 hg log --template '{node|short}\n' | 97 hg log --template '{node|short}\n' |
98 | 98 |
99 echo '# formatnode filter works' | |
100 echo '# quiet' | |
101 hg -q log -r 0 --template '#node|formatnode#\n' | |
102 echo '# normal' | |
103 hg log -r 0 --template '#node|formatnode#\n' | |
104 echo '# verbose' | |
105 hg -v log -r 0 --template '#node|formatnode#\n' | |
106 echo '# debug' | |
107 hg --debug log -r 0 --template '#node|formatnode#\n' | |
108 | |
99 echo '# error on syntax' | 109 echo '# error on syntax' |
100 echo 'x = "f' >> t | 110 echo 'x = "f' >> t |
101 hg log | 111 hg log |
102 | 112 |
103 echo '# done' | 113 echo '# done' |