tests/crashgetbundler.py
author Raphaël Gomès <rgomes@octobus.net>
Mon, 28 Sep 2020 15:08:02 +0200
changeset 45617 7bd13bf99d1c
parent 43076 2372284d9457
child 48966 6000f5b25c9b
permissions -rw-r--r--
rust: update minimum supported Rust compiler version Debian stable backported `rustc 1.41.1` for a Firefox release that needed it, so we can finally update the compiler version to something that isn't more than a year old. This means that (among other things [1]), `async await` syntax is usable! Differential Revision: https://phab.mercurial-scm.org/D9138

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)