--- a/mercurial/commands.py Sun Mar 26 20:48:00 2017 -0700
+++ b/mercurial/commands.py Sun Mar 26 21:04:29 2017 -0700
@@ -1804,8 +1804,11 @@
return
ui.pager('config')
fm = ui.formatter('config', opts)
- for f in rcutil.rccomponents():
- ui.debug('read config from: %s\n' % f)
+ for t, f in rcutil.rccomponents():
+ if t == 'path':
+ ui.debug('read config from: %s\n' % f)
+ else:
+ raise error.ProgrammingError('unknown rctype: %s' % t)
untrusted = bool(opts.get('untrusted'))
if values:
sections = [v for v in values if '.' not in v]