tests/crashgetbundler.py
author Joerg Sonnenberger <joerg@bec.de>
Thu, 25 Jan 2018 22:40:19 +0100
changeset 35850 079b27b5a869
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
patch: avoid repeated binary checks if all files in a patch are text Differential Revision: https://phab.mercurial-scm.org/D1940

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)