tests/crashgetbundler.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Sun, 02 Jul 2017 02:19:05 +0200
changeset 33256 4ea0b7a613f9
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
auditor: add simple comment about repo.auditor and al Every once in a while, I get confused by what these are. Let us add a comment.

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)