Fixed #41 - Handle ssh+svn URLs of editables correctly.

This commit is contained in:
Jannis Leidel 2010-03-11 02:41:08 +01:00
parent 24a1f48276
commit e9d400fc87
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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