mercurial/templatekw.py
changeset 31171 1ec89cf0ea49
parent 30833 bd5e9647f646
child 31452 52dabcc49968
--- a/mercurial/templatekw.py	Sat Feb 25 22:04:30 2017 +0900
+++ b/mercurial/templatekw.py	Sat Feb 25 16:38:26 2017 +0900
@@ -204,6 +204,17 @@
 
     return getrenamed
 
+# default templates internally used for rendering of lists
+defaulttempl = {
+    'parent': '{rev}:{node|formatnode} ',
+    'manifest': '{rev}:{node|formatnode}',
+    'file_copy': '{name} ({source})',
+    'envvar': '{key}={value}',
+    'extra': '{key}={value|stringescape}'
+}
+# filecopy is preserved for compatibility reasons
+defaulttempl['filecopy'] = defaulttempl['file_copy']
+
 # keywords are callables like:
 # fn(repo, ctx, templ, cache, revcache, **args)
 # with: