changeset 37272 | 7d3bc1d4e871 |
parent 37260 | 8e57c3b0dce4 |
child 37277 | 9e8128e84326 |
--- a/mercurial/templatefuncs.py Mon Apr 02 16:18:33 2018 -0700 +++ b/mercurial/templatefuncs.py Sat Mar 17 20:09:05 2018 +0900 @@ -283,7 +283,8 @@ keytype = getattr(haystack, 'keytype', None) try: needle = evalrawexp(context, mapping, args[0]) - needle = templateutil.unwrapastype(needle, keytype or bytes) + needle = templateutil.unwrapastype(context, mapping, needle, + keytype or bytes) found = (needle in haystack) except error.ParseError: found = False