tests/crashgetbundler.py
author Augie Fackler <augie@google.com>
Sun, 12 Mar 2017 00:49:49 -0500
changeset 31356 ef6888172437
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
revlog: extract first byte of revlog with a slice so it's portable

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)