Show More
@@ -1808,7 +1808,8 b' def config(ui, repo, *values, **opts):' | |||||
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': |
|
1810 | elif t == 'items': | |
1811 | pass |
|
1811 | for section, name, value, source in f: | |
|
1812 | ui.debug('set config by: %s\n' % source) | |||
1812 | else: |
|
1813 | else: | |
1813 | raise error.ProgrammingError('unknown rctype: %s' % t) |
|
1814 | raise error.ProgrammingError('unknown rctype: %s' % t) | |
1814 | untrusted = bool(opts.get('untrusted')) |
|
1815 | untrusted = bool(opts.get('untrusted')) |
@@ -176,6 +176,20 b' plain hgrc' | |||||
176 | --debug: ui.debug=True |
|
176 | --debug: ui.debug=True | |
177 | --quiet: ui.quiet=False |
|
177 | --quiet: ui.quiet=False | |
178 |
|
178 | |||
|
179 | with environment variables | |||
|
180 | ||||
|
181 | $ PAGER=p1 EDITOR=e1 VISUAL=e2 hg showconfig --debug | |||
|
182 | set config by: $EDITOR | |||
|
183 | set config by: $VISUAL | |||
|
184 | set config by: $PAGER | |||
|
185 | read config from: $TESTTMP/hgrc | |||
|
186 | repo: bundle.mainreporoot=$TESTTMP | |||
|
187 | $PAGER: pager.pager=p1 | |||
|
188 | $VISUAL: ui.editor=e2 | |||
|
189 | --verbose: ui.verbose=False | |||
|
190 | --debug: ui.debug=True | |||
|
191 | --quiet: ui.quiet=False | |||
|
192 | ||||
179 | plain mode with exceptions |
|
193 | plain mode with exceptions | |
180 |
|
194 | |||
181 | $ cat > plain.py <<EOF |
|
195 | $ cat > plain.py <<EOF |
General Comments 0
You need to be logged in to leave comments.
Login now