tests/crashgetbundler.py
author Gregory Szorc <gregory.szorc@gmail.com>
Tue, 28 Aug 2018 15:10:56 -0700
changeset 39464 cdb56f295b03
parent 30876 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
httppeer: use our CBOR decoder We just implemented our own CBOR decoder. Let's use it in httppeer. Differential Revision: https://phab.mercurial-scm.org/D4465

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)