tests/crashgetbundler.py
author Matt Harbison <matt_harbison@yahoo.com>
Mon, 10 Sep 2018 21:15:54 -0400
changeset 39520 0612e4c6fda0
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
tests: stabilize test-no-symlink This goes with 89630d0b3e23.

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)