tests/crashgetbundler.py
author Martin von Zweigbergk <martinvonz@google.com>
Mon, 17 Jul 2017 16:27:13 -0700
changeset 33567 d9677e2ed16a
parent 30876 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
run-tests: warn if --color=always and no pygments installed Differential Revision: https://phab.mercurial-scm.org/D117

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)