tests/crashgetbundler.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 05 Mar 2024 15:21:18 +0100
changeset 51524 4bfae99c4021
parent 48875 6000f5b25c9b
permissions -rw-r--r--
filteredhash: move the hashing in its own function This will help us to reuse this logic in variants of the hashes used for branch cache validation.

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)