Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
43099:f1c5358f0d65 | 43100:90b9a7e06c2c |
---|---|
1099 "tags": [], | 1099 "tags": [], |
1100 "user": "User Name <user@hostname>" | 1100 "user": "User Name <user@hostname>" |
1101 } | 1101 } |
1102 ] | 1102 ] |
1103 | 1103 |
1104 Other unsupported formatter styles: | |
1105 | |
1106 $ hg log -qr . -Tpickle | |
1107 abort: "pickle" not in template map | |
1108 [255] | |
1109 $ hg log -qr . -Tdebug | |
1110 abort: "debug" not in template map | |
1111 [255] | |
1112 | |
1104 Error if style not readable: | 1113 Error if style not readable: |
1105 | 1114 |
1106 #if unix-permissions no-root | 1115 #if unix-permissions no-root |
1107 $ touch q | 1116 $ touch q |
1108 $ chmod 0 q | 1117 $ chmod 0 q |