tests/crashgetbundler.py
author Mads Kiilerich <mads@kiilerich.com>
Mon, 11 Sep 2017 00:42:22 +0200
branchstable
changeset 34089 e05e50fbdeaf
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
mq: test coverage of how [diff] configuration influence can break mq patches

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)