Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 43925:6b6872822b32
config: drop debug messages saying where config was read from
`hg config --debug` includes lines like this:
set config by: $EDITOR
but also lines like this:
$EDITOR: ui.editor=emacs -nw
The `set config by` messages don't seem to provide much additional
information over what we get from the `$EDITOR:`-type message. I could
imagine wanting to see which values got overriden by a later entry,
but that information is already not present. So let's just remove the
first type of output. My next patch would otherwise amplify the
redundant output (there would be one `set config by` for each line in
`mergetools.rc`).
Differential Revision: https://phab.mercurial-scm.org/D7627
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 11 Dec 2019 22:23:42 -0800 |
parents | e623ad1b4800 |
children | cd96eccd1ce1 |
comparison
equal
deleted
inserted
replaced
43924:86fe85364811 | 43925:6b6872822b32 |
---|---|
2222 fm = ui.formatter(b'config', opts) | 2222 fm = ui.formatter(b'config', opts) |
2223 for t, f in rcutil.rccomponents(): | 2223 for t, f in rcutil.rccomponents(): |
2224 if t == b'path': | 2224 if t == b'path': |
2225 ui.debug(b'read config from: %s\n' % f) | 2225 ui.debug(b'read config from: %s\n' % f) |
2226 elif t == b'items': | 2226 elif t == b'items': |
2227 for section, name, value, source in f: | 2227 # Don't print anything for 'items'. |
2228 ui.debug(b'set config by: %s\n' % source) | 2228 pass |
2229 else: | 2229 else: |
2230 raise error.ProgrammingError(b'unknown rctype: %s' % t) | 2230 raise error.ProgrammingError(b'unknown rctype: %s' % t) |
2231 untrusted = bool(opts.get(b'untrusted')) | 2231 untrusted = bool(opts.get(b'untrusted')) |
2232 | 2232 |
2233 selsections = selentries = [] | 2233 selsections = selentries = [] |