tests/crashgetbundler.py
author Martin von Zweigbergk <martinvonz@google.com>
Thu, 14 Nov 2019 22:31:21 -0800
changeset 43698 0c25e3404e23
parent 43076 2372284d9457
child 48875 6000f5b25c9b
permissions -rw-r--r--
py3: use '%d' for formatting a revnum in `hg co --date` code Differential Revision: https://phab.mercurial-scm.org/D7429

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)