tests/crashgetbundler.py
author Augie Fackler <augie@google.com>
Wed, 06 Nov 2019 15:35:44 -0500
changeset 43532 da9ecbb10368
parent 43076 2372284d9457
child 48966 6000f5b25c9b
permissions -rw-r--r--
vfs: more attribute suppressions Differential Revision: https://phab.mercurial-scm.org/D7285

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)