tests/crashgetbundler.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Wed, 08 Nov 2023 22:27:32 +0100
changeset 51141 c845479fc64d
parent 48875 6000f5b25c9b
permissions -rw-r--r--
cleanup: drop the `bytes` compatibility for attribute related function We can rely on the builtins directly now.

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)