tests/crashgetbundler.py
author Augie Fackler <augie@google.com>
Fri, 12 Oct 2018 11:44:27 -0400
changeset 40185 19fc5a986669
parent 30876 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
polib: update to latest release 1.0.7 (upstream rev d75ce6dbbc2a) # no-check-commit third-party code that doesn't match our style Differential Revision: https://phab.mercurial-scm.org/D5001

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)