tests/crashgetbundler.py
author Raphaël Gomès <rgomes@octobus.net>
Wed, 19 Jun 2024 14:49:35 +0200
changeset 51868 db7dbe6f7bb2
parent 48875 6000f5b25c9b
permissions -rw-r--r--
rust: add Vfs trait This will allow for the use of multiple vfs like in the Python implementation, as well as hiding the details of the upcoming Python vfs wrapper to hg-core.

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)