tests/crashgetbundler.py
author Martin von Zweigbergk <martinvonz@google.com>
Tue, 06 Feb 2018 08:57:22 -0800
changeset 36343 c8891cc3fa9e
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
mq: don't reimplement any() Differential Revision: https://phab.mercurial-scm.org/D2376

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)