diff mercurial/templater.py @ 32037:e5eab0fe69ee

templatekw: have showlist() take mapping dict with no **kwargs expansion (API) See the previous commit for why. splitlines() does not pass a mapping dict, which would probably mean the legacy template didn't work from the beginning.
author Yuya Nishihara <yuya@tcha.org>
date Wed, 05 Apr 2017 21:47:34 +0900
parents 277b3e2d711b
children 52e222eef646
line wrap: on
line diff
--- a/mercurial/templater.py	Wed Apr 05 21:40:38 2017 +0900
+++ b/mercurial/templater.py	Wed Apr 05 21:47:34 2017 +0900
@@ -595,7 +595,7 @@
     ctx = mapping['ctx']
     m = ctx.match([raw])
     files = list(ctx.matches(m))
-    return templatekw.showlist("file", files, **mapping)
+    return templatekw.showlist("file", files, mapping)
 
 @templatefunc('fill(text[, width[, initialident[, hangindent]]])')
 def fill(context, mapping, args):