tests/crashgetbundler.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Thu, 03 Aug 2023 02:48:28 +0200
changeset 51000 fb6593307e24
parent 48875 6000f5b25c9b
permissions -rw-r--r--
openvms: do not check for shebang in openvms script It does not apply to them.

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)