Show More
@@ -372,6 +372,9 b" coreconfigitem('devel', 'user.obsmarker'" | |||||
372 | coreconfigitem('devel', 'warn-config-unknown', |
|
372 | coreconfigitem('devel', 'warn-config-unknown', | |
373 | default=None, |
|
373 | default=None, | |
374 | ) |
|
374 | ) | |
|
375 | coreconfigitem('devel', 'debug.extensions', | |||
|
376 | default=False, | |||
|
377 | ) | |||
375 | coreconfigitem('devel', 'debug.peer-request', |
|
378 | coreconfigitem('devel', 'debug.peer-request', | |
376 | default=False, |
|
379 | default=False, | |
377 | ) |
|
380 | ) |
@@ -123,10 +123,11 b' def _importext(name, path=None, reportfu' | |||||
123 | def _reportimporterror(ui, err, failed, next): |
|
123 | def _reportimporterror(ui, err, failed, next): | |
124 | # note: this ui.debug happens before --debug is processed, |
|
124 | # note: this ui.debug happens before --debug is processed, | |
125 | # Use --config ui.debug=1 to see them. |
|
125 | # Use --config ui.debug=1 to see them. | |
126 | ui.debug('could not import %s (%s): trying %s\n' |
|
126 | if ui.configbool('devel', 'debug.extensions'): | |
127 | % (failed, stringutil.forcebytestr(err), next)) |
|
127 | ui.debug('could not import %s (%s): trying %s\n' | |
128 | if ui.debugflag: |
|
128 | % (failed, stringutil.forcebytestr(err), next)) | |
129 |
ui. |
|
129 | if ui.debugflag: | |
|
130 | ui.traceback() | |||
130 |
|
131 | |||
131 | def _rejectunicode(name, xs): |
|
132 | def _rejectunicode(name, xs): | |
132 | if isinstance(xs, (list, set, tuple)): |
|
133 | if isinstance(xs, (list, set, tuple)): |
@@ -72,10 +72,9 b' names of extensions failed to load can b' | |||||
72 | $ hg --config extensions.badexts=showbadexts.py showbadexts 2>&1 | grep '^BADEXTS' |
|
72 | $ hg --config extensions.badexts=showbadexts.py showbadexts 2>&1 | grep '^BADEXTS' | |
73 | BADEXTS: badext badext2 |
|
73 | BADEXTS: badext badext2 | |
74 |
|
74 | |||
75 | show traceback for ImportError of hgext.name if debug is set |
|
75 | show traceback for ImportError of hgext.name if devel.debug.extensions is set | |
76 | (note that --debug option isn't applied yet when loading extensions) |
|
|||
77 |
|
76 | |||
78 |
$ (hg help help --traceback --config |
|
77 | $ (hg help help --traceback --debug --config devel.debug.extensions=yes 2>&1) \ | |
79 |
> | grep -v |
|
78 | > | grep -v '^ ' \ | |
80 | > | egrep 'extension..[^p]|^Exception|Traceback|ImportError|not import' |
|
79 | > | egrep 'extension..[^p]|^Exception|Traceback|ImportError|not import' | |
81 | *** failed to import extension badext from $TESTTMP/badext.py: bit bucket overflow |
|
80 | *** failed to import extension badext from $TESTTMP/badext.py: bit bucket overflow |
General Comments 0
You need to be logged in to leave comments.
Login now