Mercurial > public > mercurial-scm > hg-stable
diff mercurial/templatefuncs.py @ 37279:9e8128e84326
templater: pass (context, mapping) down to unwrapvalue()
The same reason as why I made unwraphybrid() take a (context, mapping) pair.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 18 Mar 2018 23:14:21 +0900 |
parents | 7d3bc1d4e871 |
children | 41a5d815d2c1 |
line wrap: on
line diff
--- a/mercurial/templatefuncs.py Sat Mar 17 20:58:28 2018 +0900 +++ b/mercurial/templatefuncs.py Sun Mar 18 23:14:21 2018 +0900 @@ -319,7 +319,7 @@ # TODO: perhaps this should be evalfuncarg(), but it can't because hgweb # abuses generator as a keyword that returns a list of dicts. joinset = evalrawexp(context, mapping, args[0]) - joinset = templateutil.unwrapvalue(joinset) + joinset = templateutil.unwrapvalue(context, mapping, joinset) joinfmt = getattr(joinset, 'joinfmt', pycompat.identity) joiner = " " if len(args) > 1: