diff options
Diffstat (limited to 'pip/vcs')
-rw-r--r-- | pip/vcs/__init__.py | 5 | ||||
-rw-r--r-- | pip/vcs/subversion.py | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/pip/vcs/__init__.py b/pip/vcs/__init__.py index 302c32da4..33c9c7c5d 100644 --- a/pip/vcs/__init__.py +++ b/pip/vcs/__init__.py @@ -4,7 +4,6 @@ import os import shutil from pip.backwardcompat import urlparse, urllib -from pip.exceptions import BadCommand from pip.log import logger from pip.util import display_path, backup_dir, find_command, ask, rmtree @@ -14,7 +13,7 @@ __all__ = ['vcs', 'get_src_requirement'] class VcsSupport(object): _registry = {} - schemes = ['ssh', 'git', 'hg', 'bzr', 'sftp'] + schemes = ['ssh', 'git', 'hg', 'bzr', 'sftp', 'svn'] def __init__(self): # Register more schemes with urlparse for various version control systems @@ -106,8 +105,6 @@ class VersionControl(object): if self._cmd is not None: return self._cmd command = find_command(self.name) - if command is None: - raise BadCommand('Cannot find command %r' % self.name) logger.info('Found command %r at %r' % (self.name, command)) self._cmd = command return command diff --git a/pip/vcs/subversion.py b/pip/vcs/subversion.py index b1fa40e1b..79c31ec0e 100644 --- a/pip/vcs/subversion.py +++ b/pip/vcs/subversion.py @@ -16,7 +16,7 @@ class Subversion(VersionControl): name = 'svn' dirname = '.svn' repo_name = 'checkout' - schemes = ('svn', 'svn+ssh', 'svn+http', 'svn+https') + schemes = ('svn', 'svn+ssh', 'svn+http', 'svn+https', 'svn+svn') bundle_file = 'svn-checkout.txt' guide = ('# This was an svn checkout; to make it a checkout again run:\n' 'svn checkout --force -r %(rev)s %(url)s .\n') |