tests/crashgetbundler.py
author Phil Cohen <phillco@fb.com>
Thu, 24 Aug 2017 21:30:51 -0700
changeset 33908 4074de97b512
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
simplemerge: simplify code now that we always write to a context There's no need for an `out` abstraction between files and contexts anymore. Differential Revision: https://phab.mercurial-scm.org/D383

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)