tests/crashgetbundler.py
author Matt Harbison <matt_harbison@yahoo.com>
Fri, 06 Jan 2023 12:16:04 -0500
branchstable
changeset 49632 05b329cbd23d
parent 48966 6000f5b25c9b
permissions -rw-r--r--
convert: stop passing str to the dateutil API in darcs I'm sure there's a bunch more stuff in here that's broken, but this was flagged by pytype.

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)