tests/crashgetbundler.py
author Martin von Zweigbergk <martinvonz@google.com>
Thu, 07 Jan 2021 13:57:21 -0800
changeset 46277 ed2f2150d57c
parent 43076 2372284d9457
child 48875 6000f5b25c9b
permissions -rw-r--r--
shelve: move method for reading .hg to new shelf class Differential Revision: https://phab.mercurial-scm.org/D9704

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)