comparison 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
comparison
equal deleted inserted replaced
30832:da5fa0f13a41 30833:bd5e9647f646
1446 filters = {'formatnode': formatnode} 1446 filters = {'formatnode': formatnode}
1447 defaulttempl = { 1447 defaulttempl = {
1448 'parent': '{rev}:{node|formatnode} ', 1448 'parent': '{rev}:{node|formatnode} ',
1449 'manifest': '{rev}:{node|formatnode}', 1449 'manifest': '{rev}:{node|formatnode}',
1450 'file_copy': '{name} ({source})', 1450 'file_copy': '{name} ({source})',
1451 'envvar': '{key}={value}',
1451 'extra': '{key}={value|stringescape}' 1452 'extra': '{key}={value|stringescape}'
1452 } 1453 }
1453 # filecopy is preserved for compatibility reasons 1454 # filecopy is preserved for compatibility reasons
1454 defaulttempl['filecopy'] = defaulttempl['file_copy'] 1455 defaulttempl['filecopy'] = defaulttempl['file_copy']
1455 assert not (tmpl and mapfile) 1456 assert not (tmpl and mapfile)