view tests/crashgetbundler.py @ 48861:72936be2a21b stable

censor: demonstrate a bug Differential Revision: https://phab.mercurial-scm.org/D12584
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Fri, 22 Apr 2022 14:39:00 +0100
parents 2372284d9457
children 6000f5b25c9b
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)