tests/crashgetbundler.py
author Augie Fackler <augie@google.com>
Sat, 17 Feb 2018 22:52:24 -0500
changeset 36311 a87093e2805d
parent 30876 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
hgweb_mod: partially undo 8afc25e7effc to fix py3 We now bytes-ify the entire request, so this is wrong. Differential Revision: https://phab.mercurial-scm.org/D2308

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)