##// END OF EJS Templates
templatefuncs: do not crash because of invalid value fed to mailmap()
Yuya Nishihara -
r37277:8e57c3b0 default
parent child Browse files
Show More
@@ -175,7 +175,7 b' def mailmap(context, mapping, args):'
175 if len(args) != 1:
175 if len(args) != 1:
176 raise error.ParseError(_("mailmap expects one argument"))
176 raise error.ParseError(_("mailmap expects one argument"))
177
177
178 author = evalfuncarg(context, mapping, args[0])
178 author = evalstring(context, mapping, args[0])
179
179
180 cache = context.resource(mapping, 'cache')
180 cache = context.resource(mapping, 'cache')
181 repo = context.resource(mapping, 'repo')
181 repo = context.resource(mapping, 'repo')
@@ -65,3 +65,8 b' A commit with improperly formatted user '
65 Proper Name 4 <proper@m.c>
65 Proper Name 4 <proper@m.c>
66 Testuser <newmmentry@m.c>
66 Testuser <newmmentry@m.c>
67 Improper user
67 Improper user
68
69 No TypeError beacause of invalid input
70
71 $ hg log -T '{mailmap(termwidth)}\n' -r0
72 80
General Comments 0
You need to be logged in to leave comments. Login now