Mercurial > hg-stable
changeset 37262:8e57c3b0dce4
templatefuncs: do not crash because of invalid value fed to mailmap()
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 01 Apr 2018 11:06:29 +0900 |
parents | d29f6fbd1181 |
children | 3809eafedf2c |
files | mercurial/templatefuncs.py tests/test-mailmap.t |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/templatefuncs.py Sat Mar 31 23:34:15 2018 -0700 +++ b/mercurial/templatefuncs.py Sun Apr 01 11:06:29 2018 +0900 @@ -175,7 +175,7 @@ if len(args) != 1: raise error.ParseError(_("mailmap expects one argument")) - author = evalfuncarg(context, mapping, args[0]) + author = evalstring(context, mapping, args[0]) cache = context.resource(mapping, 'cache') repo = context.resource(mapping, 'repo')