tests/crashgetbundler.py
author Jun Wu <quark@fb.com>
Tue, 06 Mar 2018 19:31:17 -0800
changeset 36765 04d64163039a
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
fuzz: fix xdiff build Recent xdiff code cleanups removed some files and changed some structures. Update fuzz code. Differential Revision: https://phab.mercurial-scm.org/D2707

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)