diff tests/test-template-engine.t @ 28957:d813132ea361

templater: load and expand aliases by template engine (API) (issue4842) Now template aliases are fully supported in log and formatter templates. As I said before, aliases are not expanded in map files. This avoids possible corruption of our stock styles and web templates. This behavior is undocumented since no map file nor [templates] section are documented at all. Later on, we might want to add [aliases] section to map files if it appears to be useful.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 27 Mar 2016 20:59:36 +0900
parents 6b86ce3e3576
children 511d6ae462f3
line wrap: on
line diff
--- a/tests/test-template-engine.t	Sun Apr 03 13:23:40 2016 +0900
+++ b/tests/test-template-engine.t	Sun Mar 27 20:59:36 2016 +0900
@@ -4,7 +4,7 @@
   > from mercurial import templater
   > 
   > class mytemplater(object):
-  >     def __init__(self, loader, filters, defaults):
+  >     def __init__(self, loader, filters, defaults, aliases):
   >         self.loader = loader
   > 
   >     def process(self, t, map):