tests/crashgetbundler.py
author Anton Shestakov <av6@dwimlabs.net>
Wed, 17 Oct 2018 22:31:34 +0800
changeset 40335 01bdf7294274
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
zsh_completion: fix a couple of flags still not being perfect Differential Revision: https://phab.mercurial-scm.org/D5141

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)