Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 8182:b97abc7c1135
showconfig: show source file and line with --debug
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 26 Apr 2009 16:50:43 -0500 |
parents | 08e1baf924ca |
children | f3abe032fc89 |
line wrap: on
line diff
--- a/mercurial/commands.py Sun Apr 26 16:50:43 2009 -0500 +++ b/mercurial/commands.py Sun Apr 26 16:50:43 2009 -0500 @@ -797,10 +797,16 @@ if values: for v in values: if v == section: + ui.debug('%s: ' % + ui.configsource(section, name, untrusted)) ui.write('%s=%s\n' % (sectname, value)) elif v == sectname: + ui.debug('%s: ' % + ui.configsource(section, name, untrusted)) ui.write(value, '\n') else: + ui.debug('%s: ' % + ui.configsource(section, name, untrusted)) ui.write('%s=%s\n' % (sectname, value)) def debugsetparents(ui, repo, rev1, rev2=None):