tests/crashgetbundler.py
author Kyle Lippincott <spectral@google.com>
Wed, 08 Aug 2018 17:03:05 -0700
changeset 38958 b9f94d67ea73
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
match: add missing "return set()", add FIXME to test to doc a bug These were both brought up during the codereview of D4130. Differential Revision: https://phab.mercurial-scm.org/D4160

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)