tests/crashgetbundler.py
author Martin von Zweigbergk <martinvonz@google.com>
Thu, 31 Mar 2022 22:54:33 -0700
changeset 49086 704e993e8ee9
parent 48875 6000f5b25c9b
permissions -rw-r--r--
rust-nodemap-docket: make unaware of `Repo` Differential Revision: https://phab.mercurial-scm.org/D12545

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)