tests/crashgetbundler.py
author Augie Fackler <augie@google.com>
Wed, 17 Jan 2018 21:43:46 -0500
changeset 35874 f61461d2bfd8
parent 30876 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
context: use native string when peeking in __dict__ # skip-blame because we're just adding a prefix on a string constant Differential Revision: https://phab.mercurial-scm.org/D1893

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)