mercurial/templater.py
changeset 36624 2da414105809
parent 36620 121a20e5da56
child 36625 b5d39a09656a
--- a/mercurial/templater.py	Sun Feb 25 19:05:57 2018 +0900
+++ b/mercurial/templater.py	Sun Feb 25 19:08:02 2018 +0900
@@ -1129,12 +1129,7 @@
             revs = query(raw)
             revs = list(revs)
             revsetcache[raw] = revs
-
-    # TODO: pass (context, mapping) pair to keyword function
-    props = context._resources.copy()
-    props.update(mapping)
-    return templatekw.showrevslist("revision", revs,
-                                   **pycompat.strkwargs(props))
+    return templatekw.showrevslist(context, mapping, "revision", revs)
 
 @templatefunc('rstdoc(text, style)')
 def rstdoc(context, mapping, args):