tests/crashgetbundler.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Thu, 11 Jan 2024 16:41:54 +0100
changeset 51328 0106df85efd5
parent 48966 6000f5b25c9b
permissions -rw-r--r--
revlog: stop using `atomictmp` for the split revlog Since we already manually deal with writing on the side and delaying visibily, we no longer need this.

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)