diff mercurial/cmdutil.py @ 30833:bd5e9647f646

templater: add '{envvars}' to access environment variables Since the option for ui.exportableenviron is experimental, so is this template until the underlying API is sorted out.
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 17 Jan 2017 23:12:54 -0500
parents 0fbb3a5c188e
children 565c07036066
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Tue Jan 17 23:05:12 2017 -0500
+++ b/mercurial/cmdutil.py	Tue Jan 17 23:12:54 2017 -0500
@@ -1448,6 +1448,7 @@
             '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