tests/crashgetbundler.py
author Anton Shestakov <av6@dwimlabs.net>
Thu, 18 Jul 2019 17:07:34 +0800
changeset 42698 77c52ce50e6a
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
stack: remove unnecessary reverse() predicate Stack already sorts revisions, so no need to do it twice. This change was a part of D2400, which didn't land for other reasons. See also D2399, where this change was suggested. Differential Revision: https://phab.mercurial-scm.org/D6706

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)