view tests/crashgetbundler.py @ 49757:5844cd8e81ca

hg-cpython: upgrade dependencies `hg-cpython` has no BC breaking dependencies, we can group them all in this changeset.
author Raphaël Gomès <rgomes@octobus.net>
date Mon, 14 Nov 2022 17:18:56 +0100
parents 6000f5b25c9b
children
line wrap: on
line source

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)