# HG changeset patch # User RhodeCode Admin # Date 2024-05-13 06:24:49 # Node ID 4115318188e8db9c316c3c4d01ad46e33a442a61 # Parent 16b204505c899384d1f2bdc2f106e0d496ca0f37 feat(svn): re-enable manual generation of SVN config that was removed when we moved svn path config to .ini files - This still allows to trigger the config creation - covers some edge cases on a need ro rre-create the svn configs diff --git a/rhodecode/apps/admin/views/settings.py b/rhodecode/apps/admin/views/settings.py --- a/rhodecode/apps/admin/views/settings.py +++ b/rhodecode/apps/admin/views/settings.py @@ -115,8 +115,8 @@ class AdminSettingsView(BaseAppView): c.svn_tag_patterns = model.get_global_svn_tag_patterns() settings = self.request.registry.settings - c.svn_proxy_generate_config = settings[generate_config] - + c.svn_generate_config = settings[generate_config] + c.svn_config_path = rhodecode.ConfigGet().get_str('svn.proxy.config_file_path') defaults = self._form_defaults() model.create_largeobjects_dirs_if_needed(defaults['paths_root_path']) @@ -144,8 +144,8 @@ class AdminSettingsView(BaseAppView): c.svn_tag_patterns = model.get_global_svn_tag_patterns() settings = self.request.registry.settings - c.svn_proxy_generate_config = settings[generate_config] - + c.svn_generate_config = settings[generate_config] + c.svn_config_path = rhodecode.ConfigGet().get_str('svn.proxy.config_file_path') application_form = ApplicationUiSettingsForm(self.request.translate)() try: diff --git a/rhodecode/templates/base/vcs_settings.mako b/rhodecode/templates/base/vcs_settings.mako --- a/rhodecode/templates/base/vcs_settings.mako +++ b/rhodecode/templates/base/vcs_settings.mako @@ -150,6 +150,23 @@
+
+ path: ${c.svn_config_path} +
+
+ +
+ + % if c.svn_generate_config: + + + + % endif +
+
+ +
+