view tests/crashgetbundler.py @ 52170:1a8466fd904a

hg-core: add fncache module For now it's only a super simple trait. It will be used for calling back into Python soon, and later will be fleshed out into a full fncache.
author Raphaël Gomès <rgomes@octobus.net>
date Mon, 29 Jul 2024 20:28:42 +0200
parents 6000f5b25c9b
children
line wrap: on
line source

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)