tests/crashgetbundler.py
author Anton Shestakov <av6@dwimlabs.net>
Fri, 08 Dec 2017 22:27:14 +0800
changeset 35314 1fe3c8296cfe
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
hgweb: rewrite `template = A and B or C` to be a proper ternary operator

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)