tests/crashgetbundler.py
author Phil Cohen <phillco@fb.com>
Sun, 13 Aug 2017 20:06:52 -0700
changeset 33825 de573184686e
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
simplemerge: extract verifytext as a helper function This will be used in a subsequent commit. Differential Revision: https://phab.mercurial-scm.org/D371

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)