tests/crashgetbundler.py
author Raphaël Gomès <rgomes@octobus.net>
Tue, 07 Nov 2023 16:59:37 +0100
branchstable
changeset 51128 26c57e7a0890
parent 48875 6000f5b25c9b
permissions -rw-r--r--
Added signature for changeset 27055614b685

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)