tests/crashgetbundler.py
author Boris Feld <boris.feld@octobus.net>
Fri, 23 Nov 2018 06:03:38 +0100
changeset 40817 e207f0d6c243
parent 30876 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
perf: update perfindex to be more realistic The previous code was creating a revlog manually, we now use the actual `localrepo` method to create it. We have to jump though extra hops to work around the impact of filecache.

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)