branch | stable |
changeset 29623 | 33bf8bd8c5b9 |
parent 28539 | 119702a8b415 |
child 29624 | 1a129dd05b7d |
--- 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):