view tests/crashgetbundler.py @ 40459:5eaa5eb0db4e stable

Added signature for changeset a91a2837150b
author Augie Fackler <raf@durin42.com>
date Fri, 02 Nov 2018 14:18:29 -0400
parents f3807a135e43
children 2372284d9457
line wrap: on
line source

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)