tests/crashgetbundler.py
author Martin von Zweigbergk <martinvonz@google.com>
Fri, 18 Sep 2020 15:40:26 -0700
changeset 45554 25e365d5aa8f
parent 43076 2372284d9457
child 48966 6000f5b25c9b
permissions -rw-r--r--
rebase: add dryrun property to rebaseruntime I want to be able to check the property in `rebaseruntime._rebasenode()`. Passing the value via the runtime is a convenient way. Differential Revision: https://phab.mercurial-scm.org/D9074

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)