Mercurial > hg
diff tests/test-template-map.t @ 43100:90b9a7e06c2c
formatter: parse name of built-in formatter templates in standard way
This slightly makes it easier to add "-Tjson(...)" handling, which should
be enabled only if the template specifier doesn't look like a literal
template. In other words, it should be handled after "if '{' in tmpl".
This makes "log -Tpickle" and "log -Tdebug" abort, which I think is better
than just printing "picklepicklepickle...".
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 05 Oct 2019 23:20:35 -0400 |
parents | a66965406528 |
children | 1d12ae5096d1 |
line wrap: on
line diff
--- a/tests/test-template-map.t Sat Oct 05 23:04:45 2019 -0400 +++ b/tests/test-template-map.t Sat Oct 05 23:20:35 2019 -0400 @@ -1101,6 +1101,15 @@ } ] +Other unsupported formatter styles: + + $ hg log -qr . -Tpickle + abort: "pickle" not in template map + [255] + $ hg log -qr . -Tdebug + abort: "debug" not in template map + [255] + Error if style not readable: #if unix-permissions no-root