tests/crashgetbundler.py
author Martin von Zweigbergk <martinvonz@google.com>
Mon, 23 Nov 2020 10:39:51 -0800
changeset 45918 ac565222b9f8
parent 43076 2372284d9457
child 48875 6000f5b25c9b
permissions -rw-r--r--
errors: raise InputError on bad top-level flags Differential Revision: https://phab.mercurial-scm.org/D9388

from __future__ import absolute_import

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)