tests/crashgetbundler.py
author Pulkit Goyal <7895pulkit@gmail.com>
Sun, 29 Apr 2018 22:39:45 +0530
changeset 38024 bbdc1bc56e58
parent 30876 f3807a135e43
child 43076 2372284d9457
permissions -rw-r--r--
remotenames: check the remotepath with url containing user information too Current logic to match a remotepatch to a user defined path first removes the authentication information from the url and then tries to match it. However this is not true every time. If we clone a repo using ssh, the default path contains the user information too. Differential Revision: https://phab.mercurial-scm.org/D3518

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)