tests/crashgetbundler.py
author Pulkit Goyal <pulkit@yandex-team.ru>
Sat, 13 Oct 2018 04:54:35 +0300
changeset 40226 0d403e9f049a
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
py3: use stringutil.pprint() instead of '%r' This makes test-pager-legacy.t pass on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5037

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)