Mercurial > hg
comparison tests/test-share-bookmarks.t @ 45681:a736ab681b78
errors: stop passing non-strings to Abort's constructor
The next patch will change `Abort`'s constructor and `__bytes__`
functions and they will start assuming that the first argument is the
messages as `bytes`.
Differential Revision: https://phab.mercurial-scm.org/D9178
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 08 Oct 2020 15:35:44 -0700 |
parents | d252f51ab032 |
children | 4b0192f592cf |
comparison
equal
deleted
inserted
replaced
45680:bb1a988ef4a5 | 45681:a736ab681b78 |
---|---|
228 > exchange, | 228 > exchange, |
229 > extensions, | 229 > extensions, |
230 > ) | 230 > ) |
231 > def _pullbookmarks(orig, pullop): | 231 > def _pullbookmarks(orig, pullop): |
232 > orig(pullop) | 232 > orig(pullop) |
233 > raise error.HookAbort('forced failure by extension') | 233 > raise error.HookAbort(b'forced failure by extension') |
234 > def extsetup(ui): | 234 > def extsetup(ui): |
235 > extensions.wrapfunction(exchange, '_pullbookmarks', _pullbookmarks) | 235 > extensions.wrapfunction(exchange, '_pullbookmarks', _pullbookmarks) |
236 > EOF | 236 > EOF |
237 $ cd repo4 | 237 $ cd repo4 |
238 $ hg boo | 238 $ hg boo |