tests/crashgetbundler.py
author Gregory Szorc <gregory.szorc@gmail.com>
Wed, 11 Apr 2018 10:51:38 -0700
changeset 37613 96d735601ca1
parent 30876 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
wireproto: move gboptsmap to wireprototypes and rename (API) This is also shared between client and server and will need to exist in a shared module when that code is split into different modules. Differential Revision: https://phab.mercurial-scm.org/D3258

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)