Show More
@@ -259,6 +259,8 b' def prettyformat(tree):' | |||
|
259 | 259 | |
|
260 | 260 | def compileexp(exp, context, curmethods): |
|
261 | 261 | """Compile parsed template tree to (func, data) pair""" |
|
262 | if not exp: | |
|
263 | raise error.ParseError(_("missing argument")) | |
|
262 | 264 | t = exp[0] |
|
263 | 265 | if t in curmethods: |
|
264 | 266 | return curmethods[t](exp, context) |
@@ -2766,6 +2766,16 b' Error on syntax:' | |||
|
2766 | 2766 | hg: parse error at 6: invalid token |
|
2767 | 2767 | [255] |
|
2768 | 2768 | |
|
2769 | $ hg log -T '{}' | |
|
2770 | hg: parse error at 2: not a prefix: end | |
|
2771 | [255] | |
|
2772 | $ hg debugtemplate -v '{()}' | |
|
2773 | (template | |
|
2774 | (group | |
|
2775 | None)) | |
|
2776 | hg: parse error: missing argument | |
|
2777 | [255] | |
|
2778 | ||
|
2769 | 2779 | Behind the scenes, this will throw TypeError |
|
2770 | 2780 | |
|
2771 | 2781 | $ hg log -l 3 --template '{date|obfuscate}\n' |
General Comments 0
You need to be logged in to leave comments.
Login now