tests/crashgetbundler.py
author Jason R. Coombs <jaraco@jaraco.com>
Wed, 17 Aug 2022 10:17:15 -0400
changeset 49454 34dddc5d2e2f
parent 48875 6000f5b25c9b
permissions -rw-r--r--
shelve: in test for trailing whitespace, strip commit (issue6735)

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)