--- a/mercurial/templatekw.py Thu Sep 10 23:32:36 2015 +0900
+++ b/mercurial/templatekw.py Sat Sep 12 00:21:41 2015 +0900
@@ -409,6 +409,14 @@
""":rev: Integer. The repository-local changeset revision number."""
return scmutil.intrev(ctx.rev())
+def showrevslist(name, revs, **args):
+ """helper to generate a list of revisions in which a mapped template will
+ be evaluated"""
+ repo = args['ctx'].repo()
+ f = _showlist(name, revs, **args)
+ return _hybrid(f, revs,
+ lambda x: {name: x, 'ctx': repo[x], 'revcache': {}})
+
def showsubrepos(**args):
""":subrepos: List of strings. Updated subrepositories in the changeset."""
ctx = args['ctx']