view tests/crashgetbundler.py @ 31809:35b8bb1ef02b

revset: stop supporting predicate that returns plain list (API) It's said to be removed after 3.9.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 02 Apr 2017 22:01:32 +0900
parents f3807a135e43
children 2372284d9457
line wrap: on
line source

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)