tests/crashgetbundler.py
author Denis Laxalde <denis.laxalde@logilab.fr>
Fri, 18 Oct 2019 12:12:56 +0200
changeset 43290 e20bafd65a96
parent 43076 2372284d9457
child 48966 6000f5b25c9b
permissions -rw-r--r--
py3: ajust abort message in test-hook.t

from __future__ import absolute_import

from mercurial.i18n import _
from mercurial import changegroup, error, extensions


def abort(orig, *args, **kwargs):
    raise error.Abort(_('this is an exercise'))


def uisetup(ui):
    extensions.wrapfunction(changegroup, 'getbundler', abort)