Mercurial > hg-stable
changeset 11048:9e643a0c3278
showconfig: show rc paths with --debug
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 26 Apr 2010 15:32:23 +0200 |
parents | c7dbd6c4877a |
children | a84f14228b1d |
files | mercurial/commands.py tests/test-hgrc.out |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Mon Apr 26 15:58:36 2010 -0400 +++ b/mercurial/commands.py Mon Apr 26 15:32:23 2010 +0200 @@ -873,6 +873,8 @@ for each config item. """ + for f in util.rcpath(): + ui.debug(_('read config from: %s\n') % f) untrusted = bool(opts.get('untrusted')) if values: if len([v for v in values if '.' in v]) > 1:
--- a/tests/test-hgrc.out Mon Apr 26 15:58:36 2010 -0400 +++ b/tests/test-hgrc.out Mon Apr 26 15:32:23 2010 +0200 @@ -11,6 +11,7 @@ foo.baz=bif cb hg: config error at $HGRCPATH:1: cannot include /no-such-file (No such file or directory) % customized hgrc +read config from: .../.hgrc .../.hgrc:13: alias.log=log -g .../.hgrc:11: defaults.identify=-n .../.hgrc:2: ui.debug=true @@ -22,6 +23,7 @@ .../.hgrc:8: ui.style=~/.hgstyle .../.hgrc:9: ui.logtemplate={node} % plain hgrc +read config from: .../.hgrc none: ui.traceback=True none: ui.verbose=False none: ui.debug=True