tests/crashgetbundler.py
author Yuya Nishihara <yuya@tcha.org>
Thu, 19 Apr 2018 23:33:17 +0900
branchstable
changeset 37802 090c89a8db32
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
diffhelpers: backport 9e40bc4c1bde from C implementation 9e40bc4c1bde just says "harden testhunk." I don't think this would be the case, but it makes some sense to avoid negative index.

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)