tests/crashgetbundler.py
author Matt Harbison <matt_harbison@yahoo.com>
Sat, 20 Jan 2018 13:57:11 -0500
changeset 35770 0aafeded7957
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
test-sparse: make the '.hg' exclusion filter Windows compatible

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)