tests/crashgetbundler.py
author Mads Kiilerich <mads@kiilerich.com>
Sun, 27 Oct 2019 21:28:26 +0100
branchstable
changeset 43342 a6dcac6454c1
parent 43076 2372284d9457
child 48966 6000f5b25c9b
permissions -rw-r--r--
packaging: introduce Python3 support as buildrpm --python3 Just overrule the HGPYTHON3 warning.

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)