svn: pass in explicit SCM into the call function for faster detection of protocol.

This commit is contained in:
Marcin Kuzminski 2017-11-27 18:56:44 +01:00
parent b891773a32
commit 098d879432

View file

@ -136,11 +136,13 @@ class SimpleSvn(simplevcs.SimpleVCS):
# SVN includes the whole path in it's requests, including
# subdirectories inside the repo. Therefore we have to search for
# the repo root directory.
if not is_valid_repo(repo_name, self.base_path, self.SCM):
if not is_valid_repo(
repo_name, self.base_path, explicit_scm=self.SCM):
current_path = ''
for component in repo_name.split('/'):
current_path += component
if is_valid_repo(current_path, self.base_path, self.SCM):
if is_valid_repo(
current_path, self.base_path, explicit_scm=self.SCM):
return current_path
current_path += '/'