Show More
@@ -413,12 +413,32 b' def sanitize_settings_and_apply_defaults' | |||
|
413 | 413 | # should allow to pass in a prefix. |
|
414 | 414 | settings.setdefault('rhodecode.api.url', '/_admin/api') |
|
415 | 415 | |
|
416 | _bool_setting(settings, 'vcs.server.enable', 'true') | |
|
417 | 416 | _bool_setting(settings, 'is_test', 'false') |
|
418 | 417 | |
|
418 | # Call split out functions that sanitize settings for each topic. | |
|
419 | _sanitize_vcs_settings(settings) | |
|
420 | ||
|
419 | 421 | return settings |
|
420 | 422 | |
|
421 | 423 | |
|
424 | def _sanitize_vcs_settings(settings): | |
|
425 | """ | |
|
426 | Applies settings defaults and does type conversion for all VCS related | |
|
427 | settings. | |
|
428 | """ | |
|
429 | _string_setting(settings, 'vcs.svn.compatible_version', '') | |
|
430 | _string_setting(settings, 'git_rev_filter', '--all') | |
|
431 | _string_setting(settings, 'vcs.hooks.protocol', 'pyro4') | |
|
432 | _string_setting(settings, 'vcs.server', '') | |
|
433 | _string_setting(settings, 'vcs.server.log_level', 'debug') | |
|
434 | _string_setting(settings, 'vcs.server.protocol', 'pyro4') | |
|
435 | _bool_setting(settings, 'startup.import_repos', 'false') | |
|
436 | _bool_setting(settings, 'vcs.hooks.direct_calls', 'false') | |
|
437 | _bool_setting(settings, 'vcs.server.enable', 'true') | |
|
438 | _bool_setting(settings, 'vcs.start_server', 'false') | |
|
439 | _list_setting(settings, 'vcs.backends', 'hg, git, svn') | |
|
440 | ||
|
441 | ||
|
422 | 442 | def _bool_setting(settings, name, default): |
|
423 | 443 | settings[name] = asbool(settings.get(name, default)) |
|
424 | 444 |
General Comments 0
You need to be logged in to leave comments.
Login now