tests/crashgetbundler.py
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Mon, 10 Jul 2017 23:09:52 +0900
changeset 33386 5a9b4370bb3b
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
fsmonitor: centralize setup procedures for dirstate

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)