tests/crashgetbundler.py
author Matt Harbison <matt_harbison@yahoo.com>
Wed, 23 Oct 2024 16:59:43 -0400
changeset 52076 66579606f677
parent 48875 6000f5b25c9b
permissions -rw-r--r--
localrepo: drop the CamelCase name for `localrepo.localpeer` See 61557734c0ae for the reasoning.

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)