tests/crashgetbundler.py
author Gregory Szorc <gregory.szorc@gmail.com>
Thu, 09 Aug 2018 19:27:54 -0700
changeset 39234 3682b49e0213
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
repository: remove candelta() from ifileindex candelta() was previously called by changegroup code. With delta generation moved to the storage API, there are no more external consumers of this method and it can be removed from the storage interface. Differential Revision: https://phab.mercurial-scm.org/D4236

from __future__ import absolute_import

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)