tests/crashgetbundler.py
author Gregory Szorc <gregory.szorc@gmail.com>
Sun, 28 May 2017 10:56:28 -0700
changeset 32531 7236facefd4f
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
perf: rename perfrevlog to perfrevlogrevisions We have a couple of commands beginning with "perfrevlog." The actual "perfrevlog" command actually measures resolving the fulltext of multiple revisions. So let's rename it to reflect what it actually does.

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)