tests/crashgetbundler.py
author Augie Fackler <augie@google.com>
Mon, 20 Nov 2017 18:00:02 -0500
changeset 35126 7ea56f5700b8
parent 30876 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
setup: add hgext.lfs to list of Python packages This is needed for lfs to get installed. Probably could stand to go into an earlier patch, but I just want to get this stuff pushed.

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)