mirror of https://github.com/pypa/pip
Fixed #41 - Handle ssh+svn URLs of editables correctly.
This commit is contained in:
parent
24a1f48276
commit
e9d400fc87
|
@ -44,7 +44,7 @@ Right now pip knows of the following major version control systems:
|
|||
Subversion
|
||||
~~~~~~~~~~
|
||||
|
||||
Pip supports the URL schemes ``svn``, ``svn+http``, ``svn+https``
|
||||
Pip supports the URL schemes ``svn``, ``svn+http``, ``svn+https``, ``svn+ssh``.
|
||||
You can also give specific revisions to an SVN URL, like::
|
||||
|
||||
-e svn+http://svn.myproject.org/svn/MyProject/trunk@2019#egg=MyProject
|
||||
|
|
|
@ -167,6 +167,13 @@ class Subversion(VersionControl):
|
|||
revision = max(revision, localrev)
|
||||
return revision
|
||||
|
||||
def get_url_rev(self):
|
||||
# hotfix the URL scheme after removing svn+ from svn+ssh:// readd it
|
||||
url, rev = super(Subversion, self).get_url_rev()
|
||||
if url.startswith('ssh://'):
|
||||
url = 'svn+' + url
|
||||
return url, rev
|
||||
|
||||
def get_url(self, location):
|
||||
# In cases where the source is in a subdirectory, not alongside setup.py
|
||||
# we have to look up in the location until we find a real setup.py
|
||||
|
|
Loading…
Reference in New Issue