Mercurial > hg
comparison tests/test-bad-extension.t @ 40440:09a37a5d8f5d
extensions: fix up many many debug logs that use %r
This gets us a bunch closer on Python 3, but I'll still have to use a
ton of sad globs. A previous version of this patch tried to preserve
the %r formatting, but upon review Yuya noted that special characters
in extension names is very unlikely, so we can just use %s and not
sweat the quoting.
Differential Revision: https://phab.mercurial-scm.org/D5002
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 12 Oct 2018 12:30:47 -0400 |
parents | 943248e47864 |
children | 6f2510b581a0 |
comparison
equal
deleted
inserted
replaced
40439:25f1c7bd649d | 40440:09a37a5d8f5d |
---|---|
83 $ (hg help help --traceback --debug --config devel.debug.extensions=yes 2>&1) \ | 83 $ (hg help help --traceback --debug --config devel.debug.extensions=yes 2>&1) \ |
84 > | grep -v '^ ' \ | 84 > | grep -v '^ ' \ |
85 > | egrep 'extension..[^p]|^Exception|Traceback|ImportError|not import|ModuleNotFound' | 85 > | egrep 'extension..[^p]|^Exception|Traceback|ImportError|not import|ModuleNotFound' |
86 debug.extensions: loading extensions | 86 debug.extensions: loading extensions |
87 debug.extensions: - processing 5 entries | 87 debug.extensions: - processing 5 entries |
88 debug.extensions: - loading extension: 'gpg' | 88 debug.extensions: - loading extension: gpg |
89 debug.extensions: > 'gpg' extension loaded in * (glob) | 89 debug.extensions: > gpg extension loaded in * (glob) |
90 debug.extensions: - validating extension tables: 'gpg' | 90 debug.extensions: - validating extension tables: gpg |
91 debug.extensions: - invoking registered callbacks: 'gpg' | 91 debug.extensions: - invoking registered callbacks: gpg |
92 debug.extensions: > callbacks completed in * (glob) | 92 debug.extensions: > callbacks completed in * (glob) |
93 debug.extensions: - loading extension: 'badext' | 93 debug.extensions: - loading extension: badext |
94 *** failed to import extension badext from $TESTTMP/badext.py: bit bucket overflow | 94 *** failed to import extension badext from $TESTTMP/badext.py: bit bucket overflow |
95 Traceback (most recent call last): | 95 Traceback (most recent call last): |
96 Exception: bit bucket overflow | 96 Exception: bit bucket overflow |
97 debug.extensions: - loading extension: 'baddocext' | 97 debug.extensions: - loading extension: baddocext |
98 debug.extensions: > 'baddocext' extension loaded in * (glob) | 98 debug.extensions: > baddocext extension loaded in * (glob) |
99 debug.extensions: - validating extension tables: 'baddocext' | 99 debug.extensions: - validating extension tables: baddocext |
100 debug.extensions: - invoking registered callbacks: 'baddocext' | 100 debug.extensions: - invoking registered callbacks: baddocext |
101 debug.extensions: > callbacks completed in * (glob) | 101 debug.extensions: > callbacks completed in * (glob) |
102 debug.extensions: - loading extension: 'badext2' | 102 debug.extensions: - loading extension: badext2 |
103 debug.extensions: - could not import hgext.badext2 (No module named *badext2*): trying hgext3rd.badext2 (glob) | 103 debug.extensions: - could not import hgext.badext2 (No module named *badext2*): trying hgext3rd.badext2 (glob) |
104 Traceback (most recent call last): | 104 Traceback (most recent call last): |
105 ImportError: No module named badext2 (no-py3 !) | 105 ImportError: No module named badext2 (no-py3 !) |
106 ModuleNotFoundError: No module named 'hgext.badext2' (py3 !) | 106 ModuleNotFoundError: No module named 'hgext.badext2' (py3 !) |
107 debug.extensions: - could not import hgext3rd.badext2 (No module named *badext2*): trying badext2 (glob) | 107 debug.extensions: - could not import hgext3rd.badext2 (No module named *badext2*): trying badext2 (glob) |
119 ModuleNotFoundError: No module named 'badext2' (py3 !) | 119 ModuleNotFoundError: No module named 'badext2' (py3 !) |
120 ImportError: No module named badext2 (no-py3 !) | 120 ImportError: No module named badext2 (no-py3 !) |
121 debug.extensions: > loaded 2 extensions, total time * (glob) | 121 debug.extensions: > loaded 2 extensions, total time * (glob) |
122 debug.extensions: - loading configtable attributes | 122 debug.extensions: - loading configtable attributes |
123 debug.extensions: - executing uisetup hooks | 123 debug.extensions: - executing uisetup hooks |
124 debug.extensions: - running uisetup for 'gpg' | 124 debug.extensions: - running uisetup for gpg |
125 debug.extensions: > uisetup for 'gpg' took * (glob) | 125 debug.extensions: > uisetup for gpg took * (glob) |
126 debug.extensions: - running uisetup for 'baddocext' | 126 debug.extensions: - running uisetup for baddocext |
127 debug.extensions: > uisetup for 'baddocext' took * (glob) | 127 debug.extensions: > uisetup for baddocext took * (glob) |
128 debug.extensions: > all uisetup took * (glob) | 128 debug.extensions: > all uisetup took * (glob) |
129 debug.extensions: - executing extsetup hooks | 129 debug.extensions: - executing extsetup hooks |
130 debug.extensions: - running extsetup for 'gpg' | 130 debug.extensions: - running extsetup for gpg |
131 debug.extensions: > extsetup for 'gpg' took * (glob) | 131 debug.extensions: > extsetup for gpg took * (glob) |
132 debug.extensions: - running extsetup for 'baddocext' | 132 debug.extensions: - running extsetup for baddocext |
133 debug.extensions: > extsetup for 'baddocext' took * (glob) | 133 debug.extensions: > extsetup for baddocext took * (glob) |
134 debug.extensions: > all extsetup took * (glob) | 134 debug.extensions: > all extsetup took * (glob) |
135 debug.extensions: - executing remaining aftercallbacks | 135 debug.extensions: - executing remaining aftercallbacks |
136 debug.extensions: > remaining aftercallbacks completed in * (glob) | 136 debug.extensions: > remaining aftercallbacks completed in * (glob) |
137 debug.extensions: - loading extension registration objects | 137 debug.extensions: - loading extension registration objects |
138 debug.extensions: > extension registration object loading took * (glob) | 138 debug.extensions: > extension registration object loading took * (glob) |