tests/crashgetbundler.py
author Pulkit Goyal <7895pulkit@gmail.com>
Sat, 11 Jul 2020 00:31:21 +0530
changeset 45071 196ba4d4eb86
parent 43076 2372284d9457
child 48875 6000f5b25c9b
permissions -rw-r--r--
tests: update test-devel-warnings.t output with chg

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)