tests/crashgetbundler.py
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
Sun, 16 Apr 2017 02:48:06 +0200
changeset 32025 d323d9e0d7b4
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
pager: stop using the color extension in tests The feature is in core so let us use the core config knob directly.

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)