tests/crashgetbundler.py
author Jun Wu <quark@fb.com>
Fri, 04 Aug 2017 23:54:12 -0700
branchstable
changeset 33641 00a75672a9cb
parent 30876 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
ssh: quote parameters using shellquote (SEC) This patch uses shellquote to quote ssh parameters more strictly to avoid shell injection.

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)