--- 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):