mercurial/templateutil.py
changeset 36982 255f635c3204
parent 36921 32f9b7e3f056
child 37019 c97b936d8bb5
--- a/mercurial/templateutil.py	Sat Mar 17 21:46:17 2018 -0400
+++ b/mercurial/templateutil.py	Sun Mar 11 21:05:29 2018 +0900
@@ -350,7 +350,8 @@
             v = default
     if callable(v) and getattr(v, '_requires', None) is None:
         # old templatekw: expand all keywords and resources
-        props = context._resources.copy()
+        props = {k: f(context, mapping, k)
+                 for k, f in context._resources.items()}
         props.update(mapping)
         return v(**pycompat.strkwargs(props))
     if callable(v):