tests/crashgetbundler.py
author Martin von Zweigbergk <martinvonz@google.com>
Thu, 08 Oct 2020 09:54:38 -0700
changeset 45704 5e72827dae1e
parent 43076 2372284d9457
child 48875 6000f5b25c9b
permissions -rw-r--r--
tests: run test-copies-chain-merge.t also with copies in changesets We have these tests already and it seems like a waste to not run them in the changesets case. The biggest differences stem from `hg log --follow` not working with copies stored in the changeset extras. Differential Revision: https://phab.mercurial-scm.org/D9173

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)