diff mercurial/formatter.py @ 34715:f17a0e18c47e

templater: load aliases from [templatealias] section in map file This seems sometimes useful as an alias can be a function, but a template fragment can't.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 14 Oct 2017 18:06:42 +0900
parents 12bfecd0ffe6
children 32c278eb876f
line wrap: on
line diff
--- a/mercurial/formatter.py	Sat Oct 14 17:51:01 2017 +0900
+++ b/mercurial/formatter.py	Sat Oct 14 18:06:42 2017 +0900
@@ -418,8 +418,8 @@
 
     A map file defines a stand-alone template environment. If a map file
     selected, all templates defined in the file will be loaded, and the
-    template matching the given topic will be rendered. No aliases will be
-    loaded from user config.
+    template matching the given topic will be rendered. Aliases won't be
+    loaded from user config, but from the map file.
 
     If no map file selected, all templates in [templates] section will be
     available as well as aliases in [templatealias].