tests/crashgetbundler.py
author Manuel Jacob <me@manueljacob.de>
Sun, 28 Jun 2020 17:49:14 +0200
changeset 45017 a65c60f3280e
parent 43076 2372284d9457
child 48875 6000f5b25c9b
permissions -rw-r--r--
curses: back out d2227d4c9e6b (do not initialize LC_ALL to user settings) The changeset was based on a25343d16ebe, which will be backed out, too. Another fix for the problem will be resubmitted to the stable branch.

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)