diff mercurial/templater.py @ 26234:e4609ec959f8

templater: switch ctx of list expression to rev of revset() (BC) Because revset() function generates a list of revisions, it seems sensible to switch the ctx as well where a list expression will be evaluated. I think "{revset(...) % "..."}" expression wasn't considered well when it was introduced at cda9d2b6beab.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 12 Sep 2015 00:21:41 +0900
parents 87c9c562c37a
children ec4f3755d997
line wrap: on
line diff
--- a/mercurial/templater.py	Thu Sep 10 23:32:36 2015 +0900
+++ b/mercurial/templater.py	Sat Sep 12 00:21:41 2015 +0900
@@ -568,7 +568,7 @@
             revs = list([str(r) for r in revs])
             revsetcache[raw] = revs
 
-    return templatekw.showlist("revision", revs, **mapping)
+    return templatekw.showrevslist("revision", revs, **mapping)
 
 def rstdoc(context, mapping, args):
     """:rstdoc(text, style): Format ReStructuredText."""