tests/crashgetbundler.py
author Martin von Zweigbergk <martinvonz@google.com>
Fri, 11 Oct 2019 21:51:07 -0700
changeset 43243 e94f457998d3
parent 43076 2372284d9457
child 48875 6000f5b25c9b
permissions -rw-r--r--
narrow: drop server support for widening using the getbundle command (BC) The client still supports widening using the getbundle, which we (Google) still depend on a for a little while more (we've started the migration to the new narrow_widen command, but we're not done yet). Differential Revision: https://phab.mercurial-scm.org/D7093

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)