Mercurial > hg
comparison tests/test-flagprocessor.t @ 43402:40bf3d7ecc42 stable
py3: add a __str__ method to Abort
This improves the rendering of some exceptions by avoiding raw
bytestrings, especially when using --traceback option.
author | Denis Laxalde <denis@laxalde.org> |
---|---|
date | Mon, 04 Nov 2019 16:13:01 +0100 |
parents | 2372284d9457 |
children | 35cd52c4a5cc |
comparison
equal
deleted
inserted
replaced
43401:09537caa87f9 | 43402:40bf3d7ecc42 |
---|---|
207 REVIDX_NOOP, (noopdonothingread, noopdonothing, validatehash,) | 207 REVIDX_NOOP, (noopdonothingread, noopdonothing, validatehash,) |
208 File "*/mercurial/revlogutils/flagutil.py", line *, in addflagprocessor (glob) | 208 File "*/mercurial/revlogutils/flagutil.py", line *, in addflagprocessor (glob) |
209 insertflagprocessor(flag, processor, flagprocessors) | 209 insertflagprocessor(flag, processor, flagprocessors) |
210 File "*/mercurial/revlogutils/flagutil.py", line *, in insertflagprocessor (glob) | 210 File "*/mercurial/revlogutils/flagutil.py", line *, in insertflagprocessor (glob) |
211 raise error.Abort(msg) | 211 raise error.Abort(msg) |
212 mercurial.error.Abort: b"cannot register multiple processors on flag '0x8'." (py3 !) | 212 mercurial.error.Abort: cannot register multiple processors on flag '0x8'. (py3 !) |
213 Abort: cannot register multiple processors on flag '0x8'. (no-py3 !) | 213 Abort: cannot register multiple processors on flag '0x8'. (no-py3 !) |
214 *** failed to set up extension duplicate: cannot register multiple processors on flag '0x8'. | 214 *** failed to set up extension duplicate: cannot register multiple processors on flag '0x8'. |
215 $ hg st 2>&1 | egrep 'cannot register multiple processors|flagprocessorext' | 215 $ hg st 2>&1 | egrep 'cannot register multiple processors|flagprocessorext' |
216 File "*/tests/flagprocessorext.py", line *, in extsetup (glob) | 216 File "*/tests/flagprocessorext.py", line *, in extsetup (glob) |
217 mercurial.error.Abort: b"cannot register multiple processors on flag '0x8'." (py3 !) | 217 mercurial.error.Abort: cannot register multiple processors on flag '0x8'. (py3 !) |
218 Abort: cannot register multiple processors on flag '0x8'. (no-py3 !) | 218 Abort: cannot register multiple processors on flag '0x8'. (no-py3 !) |
219 *** failed to set up extension duplicate: cannot register multiple processors on flag '0x8'. | 219 *** failed to set up extension duplicate: cannot register multiple processors on flag '0x8'. |
220 File "*/tests/flagprocessorext.py", line *, in b64decode (glob) | 220 File "*/tests/flagprocessorext.py", line *, in b64decode (glob) |
221 | 221 |
222 $ cd .. | 222 $ cd .. |