changeset 35744 | 8685192a8733 |
parent 35680 | 077ee15b8493 |
child 36244 | 18bdfad8506e |
--- a/mercurial/templater.py Tue Jan 16 21:46:17 2018 +0900 +++ b/mercurial/templater.py Tue Jan 16 23:50:01 2018 +0900 @@ -259,6 +259,8 @@ def compileexp(exp, context, curmethods): """Compile parsed template tree to (func, data) pair""" + if not exp: + raise error.ParseError(_("missing argument")) t = exp[0] if t in curmethods: return curmethods[t](exp, context)