mercurial/commands.py
changeset 28912 867d6ba2353d
parent 28902 eb017d52899d
child 28954 f97a0bcfd7a1
--- a/mercurial/commands.py	Sun Mar 27 20:29:03 2016 +0900
+++ b/mercurial/commands.py	Sun Mar 27 20:31:56 2016 +0900
@@ -3671,8 +3671,12 @@
             raise error.Abort(_('malformed keyword definition: %s') % d)
 
     if ui.verbose:
+        aliases = ui.configitems('templatealias')
         tree = templater.parse(tmpl)
         ui.note(templater.prettyformat(tree), '\n')
+        newtree = templater.expandaliases(tree, aliases)
+        if newtree != tree:
+            ui.note("* expanded:\n", templater.prettyformat(newtree), '\n')
 
     mapfile = None
     if revs is None: