view tests/crashgetbundler.py @ 46548:0492002560f3 stable

tests: accept output changes by 33350debb480 Differential Revision: https://phab.mercurial-scm.org/D10067
author Sushil khanchi <sushilkhanchi97@gmail.com>
date Thu, 25 Feb 2021 15:18:00 +0530
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)