tests/crashgetbundler.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Fri, 05 Apr 2024 22:47:44 +0200
changeset 51585 c11d21faa73c
parent 48875 6000f5b25c9b
permissions -rw-r--r--
phases: introduce a performant efficient way to access revision in a set This will be useful in the next changesets.

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)