tests/crashgetbundler.py
author Matt Harbison <matt_harbison@yahoo.com>
Tue, 19 Nov 2019 14:36:22 -0500
branchstable
changeset 43435 cb23d9e3e21f
parent 43076 2372284d9457
child 48966 6000f5b25c9b
permissions -rw-r--r--
shelve: fix a missing variable in the exception handler for delete Caught by pytype. I haven't paid much attention to the progress of this extension, but I *think* this was the intent. Differential Revision: https://phab.mercurial-scm.org/D7457

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)