##// END OF EJS Templates
vcs: Map legacy setting value 'rhodecode.lib.middleware.utils.scm_app_http' -> 'http' to support legacy configs.
Martin Bornhold -
r963:e7fb3bd2 default
parent child Browse files
Show More
@@ -442,6 +442,13 b' def _sanitize_vcs_settings(settings):'
442 442 _list_setting(settings, 'vcs.backends', 'hg, git, svn')
443 443 _int_setting(settings, 'vcs.connection_timeout', 3600)
444 444
445 # Support legacy values of vcs.scm_app_implementation. Legacy
446 # configurations may use 'rhodecode.lib.middleware.utils.scm_app_http'
447 # which is now mapped to 'http'.
448 scm_app_impl = settings['vcs.scm_app_implementation']
449 if scm_app_impl == 'rhodecode.lib.middleware.utils.scm_app_http':
450 settings['vcs.scm_app_implementation'] = 'http'
451
445 452
446 453 def _int_setting(settings, name, default):
447 454 settings[name] = int(settings.get(name, default))
General Comments 0
You need to be logged in to leave comments. Login now