Mercurial > hg
comparison tests/test-command-template.t @ 24637:c1cb6523e968
templates-default: do not show description or summary if empty
changeset_printer shows description only if ctx.description().strip() is not
empty. The default template should do the same way.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 27 Mar 2015 22:12:53 +0900 |
parents | 6abce80e6cbf |
children | 515cd710df95 |
comparison
equal
deleted
inserted
replaced
24636:36872036169b | 24637:c1cb6523e968 |
---|---|
93 | 93 |
94 $ hg log -l1 --style default -T '{rev}\n' | 94 $ hg log -l1 --style default -T '{rev}\n' |
95 8 | 95 8 |
96 | 96 |
97 Default style is like normal output: | 97 Default style is like normal output: |
98 | |
99 $ echo c >> c | |
100 $ hg add c | |
101 $ hg commit -qm ' ' | |
98 | 102 |
99 $ hg log > log.out | 103 $ hg log > log.out |
100 $ hg log --style default > style.out | 104 $ hg log --style default > style.out |
101 $ cmp log.out style.out || diff -u log.out style.out | 105 $ cmp log.out style.out || diff -u log.out style.out |
102 | 106 |
132 $ hg --color=debug --debug log > log.out | 136 $ hg --color=debug --debug log > log.out |
133 $ hg --color=debug --debug log --style default > style.out | 137 $ hg --color=debug --debug log --style default > style.out |
134 $ cmp log.out style.out || diff -u log.out style.out | 138 $ cmp log.out style.out || diff -u log.out style.out |
135 | 139 |
136 $ mv $HGRCPATH-bak $HGRCPATH | 140 $ mv $HGRCPATH-bak $HGRCPATH |
141 | |
142 $ hg --config extensions.strip= strip -q . | |
137 | 143 |
138 Revision with no copies (used to print a traceback): | 144 Revision with no copies (used to print a traceback): |
139 | 145 |
140 $ hg tip -v --template '\n' | 146 $ hg tip -v --template '\n' |
141 | 147 |