tests/crashgetbundler.py
author Georges Racinet <gracinet@anybox.fr>
Thu, 06 Dec 2018 20:01:21 +0100
changeset 41053 d9f439fcdb4c
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
rust-cpython: binding for AncestorsIterator It's now reachable from Python as rustext.ancestor.AncestorsIterator Tests are provided in the previously introduced Python testcase: this is much more convenient that writing lengthy Rust code to call into Python. Differential Revision: https://phab.mercurial-scm.org/D5439

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)