equal
deleted
inserted
replaced
263 |
263 |
264 $ cat > ../r.py <<EOF |
264 $ cat > ../r.py <<EOF |
265 > from mercurial import context, error, extensions |
265 > from mercurial import context, error, extensions |
266 > x=[False] |
266 > x=[False] |
267 > def status(orig, *args, **opts): |
267 > def status(orig, *args, **opts): |
268 > args[0].repo().ui.log("broken", "recursion?") |
268 > args[0].repo().ui.log(b"broken", b"recursion?") |
269 > return orig(*args, **opts) |
269 > return orig(*args, **opts) |
270 > def reposetup(ui, repo): |
270 > def reposetup(ui, repo): |
271 > extensions.wrapfunction(context.basectx, 'status', status) |
271 > extensions.wrapfunction(context.basectx, 'status', status) |
272 > EOF |
272 > EOF |
273 $ hg id --config extensions.x=../r.py --config blackbox.dirty=True |
273 $ hg id --config extensions.x=../r.py --config blackbox.dirty=True |
342 $ cat > $TESTTMP/raise.py << EOF |
342 $ cat > $TESTTMP/raise.py << EOF |
343 > from __future__ import absolute_import |
343 > from __future__ import absolute_import |
344 > from mercurial import registrar, scmutil |
344 > from mercurial import registrar, scmutil |
345 > cmdtable = {} |
345 > cmdtable = {} |
346 > command = registrar.command(cmdtable) |
346 > command = registrar.command(cmdtable) |
347 > @command('raise') |
347 > @command(b'raise') |
348 > def raisecmd(*args): |
348 > def raisecmd(*args): |
349 > raise RuntimeError('raise') |
349 > raise RuntimeError('raise') |
350 > EOF |
350 > EOF |
351 |
351 |
352 $ cat >> $HGRCPATH << EOF |
352 $ cat >> $HGRCPATH << EOF |