--- a/mercurial/templateutil.py Wed Mar 21 11:30:21 2018 +0900
+++ b/mercurial/templateutil.py Fri May 04 12:43:15 2018 +0900
@@ -41,6 +41,7 @@
def getmember(self, context, mapping, key):
"""Return a member item for the specified key
+ The key argument may be a wrapped object.
A returned object may be either a wrapped object or a pure value
depending on the self type.
"""
@@ -147,6 +148,7 @@
# TODO: maybe split hybrid list/dict types?
if not util.safehasattr(self._values, 'get'):
raise error.ParseError(_('not a dictionary'))
+ key = unwrapastype(context, mapping, key, self.keytype)
return self._wrapvalue(key, self._values.get(key))
def _wrapvalue(self, key, val):