tests/crashgetbundler.py
author Yuya Nishihara <yuya@tcha.org>
Thu, 22 Mar 2018 22:39:43 +0900
changeset 37088 7ae6e3529e37
parent 30876 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
util: enable deprecation warning for stringutil proxy (API) .. api:: Several generic string helper functions have been moved to utils.stringutil module.

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)