mercurial/templater.py
changeset 36983 036e4483d3a1
parent 36982 255f635c3204
child 36987 4b744c7b35ce
--- a/mercurial/templater.py	Sun Mar 11 21:05:29 2018 +0900
+++ b/mercurial/templater.py	Sun Mar 11 21:12:02 2018 +0900
@@ -565,8 +565,6 @@
         evaluation"""
         v = None
         if key in self._resources:
-            v = mapping.get(key)
-        if v is None and key in self._resources:
             v = self._resources[key](self, mapping, key)
         if v is None:
             raise templateutil.ResourceUnavailable(
@@ -671,8 +669,7 @@
         - ``defaults``: a dict of symbol values/functions; may be overridden
           by a ``mapping`` dict.
         - ``resources``: a dict of functions returning internal data
-          (e.g. cache), inaccessible from user template; may be overridden by
-          a ``mapping`` dict.
+          (e.g. cache), inaccessible from user template.
         - ``cache``: a dict of preloaded template fragments.
         - ``aliases``: a list of alias (name, replacement) pairs.