tests/crashgetbundler.py
author Gregory Szorc <gregory.szorc@gmail.com>
Mon, 21 Feb 2022 11:12:26 -0700
changeset 48928 ceafb0f81250
parent 48875 6000f5b25c9b
permissions -rw-r--r--
revlog: remove pycompat.iteritems() Differential Revision: https://phab.mercurial-scm.org/D12333

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)