tests/crashgetbundler.py
author Gregory Szorc <gregory.szorc@gmail.com>
Thu, 16 Aug 2018 19:40:46 +0000
changeset 39160 0e46b92b37b1
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
dagutil: remove externalize() and externalizeall() They are unused after the previous commit. .. api:: externalize() and externalizeall() removed from dagutil Use .node() on a storage primitive to perform revision to node conversions. Differential Revision: https://phab.mercurial-scm.org/D4305

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)