tests/crashgetbundler.py
author Arseniy Alekseyev <aalekseyev@janestreet.com>
Fri, 12 Apr 2024 14:21:14 +0100
branchstable
changeset 51568 2a89d2f6336f
parent 48875 6000f5b25c9b
permissions -rw-r--r--
match: rename RootFiles to RootFilesIn for more consistency

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)