equal
deleted
inserted
replaced
29 Exception: bit bucket overflow |
29 Exception: bit bucket overflow |
30 *** failed to import extension badext2: No module named badext2 |
30 *** failed to import extension badext2: No module named badext2 |
31 Traceback (most recent call last): |
31 Traceback (most recent call last): |
32 ImportError: No module named badext2 |
32 ImportError: No module named badext2 |
33 |
33 |
|
34 names of extensions failed to load can be accessed via extensions.notloaded() |
|
35 |
|
36 $ cat <<EOF > showbadexts.py |
|
37 > from mercurial import cmdutil, commands, extensions |
|
38 > cmdtable = {} |
|
39 > command = cmdutil.command(cmdtable) |
|
40 > @command('showbadexts', norepo=True) |
|
41 > def showbadexts(ui, *pats, **opts): |
|
42 > ui.write('BADEXTS: %s' % ' '.join(sorted(extensions.notloaded()))) |
|
43 > EOF |
|
44 $ hg --config extensions.badexts=showbadexts.py showbadexts 2>&1 | grep '^BADEXTS' |
|
45 BADEXTS: badext badext2 |
|
46 |
34 show traceback for ImportError of hgext.name if debug is set |
47 show traceback for ImportError of hgext.name if debug is set |
35 (note that --debug option isn't applied yet when loading extensions) |
48 (note that --debug option isn't applied yet when loading extensions) |
36 |
49 |
37 $ (hg -q help help --traceback --config ui.debug=True 2>&1) \ |
50 $ (hg -q help help --traceback --config ui.debug=True 2>&1) \ |
38 > | grep -v '^ ' \ |
51 > | grep -v '^ ' \ |