tests/crashgetbundler.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Thu, 31 Aug 2023 01:21:04 +0200
changeset 50917 1a242d4d2ac4
parent 48875 6000f5b25c9b
permissions -rw-r--r--
fastannotate: use sysstr to deal with some attributes We are now Python3 only and attribute are always unicode string. So no needs to managed them using bytes.

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)