tests/crashgetbundler.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Fri, 10 Mar 2023 07:19:25 +0100
changeset 50398 cc712ce3361f
parent 48875 6000f5b25c9b
permissions -rw-r--r--
bundle: abort if the user request bundling of internal changesets See inline comments for details.

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)