tests/crashgetbundler.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Thu, 15 Apr 2021 11:50:08 +0200
changeset 47032 6ce1af5f0764
parent 43076 2372284d9457
child 48875 6000f5b25c9b
permissions -rw-r--r--
template: use `list_paths` in `peerurls` Using common code will make it simpler to update the logic behind the path definition and storage. Differential Revision: https://phab.mercurial-scm.org/D10442

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)