tests/crashgetbundler.py
author Sean Farley <sean@farley.io>
Thu, 11 May 2017 13:59:48 -0700
changeset 32633 bf728e72a219
parent 30876 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
context: move dirty() to committablectx This is a pedantic move. It should be an error if dirty() is called on a read-only context. Based on Mads Kiilerix's and my work at the sprint.

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)