tests/crashgetbundler.py
author Martin von Zweigbergk <martinvonz@google.com>
Thu, 01 Feb 2018 10:10:01 -0800
changeset 35879 6c1d3779c052
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
discovery: don't reimplement all() Differential Revision: https://phab.mercurial-scm.org/D1993

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)