tests/crashgetbundler.py
author Yuya Nishihara <yuya@tcha.org>
Fri, 17 Aug 2018 12:48:44 +0900
changeset 39142 13a1901176f1
parent 30914 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
changelog: remove copy of revlog.nodemap() It's been there since 2012, "clfilter: introduce `filteredrevs` attribute on changelog." I don't think we can apply changelog filtering to nodemap at this level, so this patch removes the nodemap stub completely.

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)