comparison mercurial/commands.py @ 31685:d83e51654c8a

rcutil: let environ override system configs (BC) This is BC because system configs won't be able to override $EDITOR, $PAGER. The new behavior is arguably more rational.
author Jun Wu <quark@fb.com>
date Sun, 26 Mar 2017 21:33:37 -0700
parents 00e569a2da97
children fbc4eb8e2433
comparison
equal deleted inserted replaced
31684:0be96ac9199a 31685:d83e51654c8a
1805 ui.pager('config') 1805 ui.pager('config')
1806 fm = ui.formatter('config', opts) 1806 fm = ui.formatter('config', opts)
1807 for t, f in rcutil.rccomponents(): 1807 for t, f in rcutil.rccomponents():
1808 if t == 'path': 1808 if t == 'path':
1809 ui.debug('read config from: %s\n' % f) 1809 ui.debug('read config from: %s\n' % f)
1810 elif t == 'items':
1811 pass
1810 else: 1812 else:
1811 raise error.ProgrammingError('unknown rctype: %s' % t) 1813 raise error.ProgrammingError('unknown rctype: %s' % t)
1812 untrusted = bool(opts.get('untrusted')) 1814 untrusted = bool(opts.get('untrusted'))
1813 if values: 1815 if values:
1814 sections = [v for v in values if '.' not in v] 1816 sections = [v for v in values if '.' not in v]