mirror of https://github.com/pypa/pip
Address previous review comments
This commit is contained in:
parent
658425a555
commit
05964ead48
|
@ -417,8 +417,8 @@ making fewer network calls).
|
||||||
Mercurial
|
Mercurial
|
||||||
~~~~~~~~~
|
~~~~~~~~~
|
||||||
|
|
||||||
The supported schemes are: ``hg+http``, ``hg+https``,
|
The supported schemes are: ``hg+file``, ``hg+http``, ``hg+https``,
|
||||||
``hg+static-http``, ``hg+ssh`` and ``hg+file``.
|
``hg+static-http``, and ``hg+ssh``.
|
||||||
|
|
||||||
Here are the supported forms::
|
Here are the supported forms::
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ class Mercurial(VersionControl):
|
||||||
dirname = '.hg'
|
dirname = '.hg'
|
||||||
repo_name = 'clone'
|
repo_name = 'clone'
|
||||||
schemes = (
|
schemes = (
|
||||||
'hg', 'hg+http', 'hg+https', 'hg+ssh', 'hg+static-http', 'hg+file'
|
'hg', 'hg+file', 'hg+http', 'hg+https', 'hg+ssh', 'hg+static-http',
|
||||||
)
|
)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
|
@ -336,10 +336,11 @@ def test_install_editable_uninstalls_existing_from_path(script, data):
|
||||||
def test_basic_install_editable_from_hg(script, tmpdir):
|
def test_basic_install_editable_from_hg(script, tmpdir):
|
||||||
"""Test cloning and hg+file install from Mercurial."""
|
"""Test cloning and hg+file install from Mercurial."""
|
||||||
pkg_path = _create_test_package(script, name='testpackage', vcs='hg')
|
pkg_path = _create_test_package(script, name='testpackage', vcs='hg')
|
||||||
args = ['install', '-e', 'hg+%s#egg=testpackage' % path_to_url(pkg_path)]
|
url = 'hg+{}#egg=testpackage'.format(path_to_url(pkg_path))
|
||||||
|
assert url.startswith('hg+file')
|
||||||
|
args = ['install', '-e', url]
|
||||||
result = script.pip(*args)
|
result = script.pip(*args)
|
||||||
result.assert_installed('testpackage', with_files=['.hg'])
|
result.assert_installed('testpackage', with_files=['.hg'])
|
||||||
assert path_to_url(pkg_path).startswith("file://")
|
|
||||||
|
|
||||||
|
|
||||||
@need_mercurial
|
@need_mercurial
|
||||||
|
|
Loading…
Reference in New Issue