mercurial/templater.py
changeset 36625 b5d39a09656a
parent 36624 2da414105809
child 36636 c6061cadb400
--- a/mercurial/templater.py	Sun Feb 25 19:08:02 2018 +0900
+++ b/mercurial/templater.py	Sun Feb 25 19:23:06 2018 +0900
@@ -942,11 +942,7 @@
     pattern = None
     if len(args) == 1:
         pattern = evalstring(context, mapping, args[0])
-
-    # TODO: pass (context, mapping) pair to keyword function
-    props = context._resources.copy()
-    props.update(mapping)
-    return templatekw.showlatesttags(pattern, **pycompat.strkwargs(props))
+    return templatekw.showlatesttags(context, mapping, pattern)
 
 @templatefunc('localdate(date[, tz])')
 def localdate(context, mapping, args):