diff -r 9c2cc107547f -r 33bf8bd8c5b9 mercurial/templatekw.py --- a/mercurial/templatekw.py Fri Jul 22 11:29:42 2016 +0000 +++ b/mercurial/templatekw.py Fri Jul 22 22:00:46 2016 +0900 @@ -547,7 +547,8 @@ revs = [str(r) for r in revs] # ifcontains() needs a list of str f = _showlist(name, revs, **args) return _hybrid(f, revs, - lambda x: {name: x, 'ctx': repo[int(x)], 'revcache': {}}) + lambda x: {name: x, 'ctx': repo[int(x)], 'revcache': {}}, + lambda d: d[name]) @templatekeyword('subrepos') def showsubrepos(**args):