mercurial/templater.py
changeset 36620 121a20e5da56
parent 36579 7f6be7121b28
child 36624 2da414105809
--- a/mercurial/templater.py	Sun Feb 25 16:22:55 2018 +0900
+++ b/mercurial/templater.py	Sun Feb 25 16:45:44 2018 +0900
@@ -722,10 +722,7 @@
     ctx = context.resource(mapping, 'ctx')
     m = ctx.match([raw])
     files = list(ctx.matches(m))
-    # TODO: pass (context, mapping) pair to keyword function
-    props = context._resources.copy()
-    props.update(mapping)
-    return templatekw.showlist("file", files, props)
+    return templatekw.compatlist(context, mapping, "file", files)
 
 @templatefunc('fill(text[, width[, initialident[, hangindent]]])')
 def fill(context, mapping, args):