tests/crashgetbundler.py
author Anton Shestakov <av6@dwimlabs.net>
Fri, 10 Aug 2018 14:46:56 +0800
changeset 39235 f625e457f43a
parent 30876 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
zsh_completion: run hg with HGPLAINEXCEPT=alias to list commands This is what contrib/bash_completion does, looks like a sensible thing to do. Differential Revision: https://phab.mercurial-scm.org/D4266

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)