# HG changeset patch # User Marcin Kuzminski # Date 2017-11-27 17:56:44 # Node ID 3879c89484d69a7c0cb8aef9195c2d9713c42505 # Parent 467c2f862fe29cc1b1045be3b1823bb40f97d6da svn: pass in explicit SCM into the call function for faster detection of protocol. diff --git a/rhodecode/lib/middleware/simplesvn.py b/rhodecode/lib/middleware/simplesvn.py --- a/rhodecode/lib/middleware/simplesvn.py +++ b/rhodecode/lib/middleware/simplesvn.py @@ -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 += '/'