You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jean-Yves Avenard <jy...@gmail.com> on 2010/09/24 06:22:25 UTC
Overriding some settings in the registry
Hi there...
I was trying to configure a custom installation, where the server file
would be automatically set for my configuration.
Unfortunately, this is done statically in the source code in config_file.c ..
There is a comment there that caught my attention:
"Configuration data in the Windows registry" NL
"==========================================" NL
"" NL
"On Windows, configuration data may also be stored in the registry. The" NL
"functions svn_config_read and svn_config_merge will read from the" NL
"registry when passed file names of the form:" NL
"" NL
" REGISTRY:<hive>/path/to/config-key" NL
"" NL
"The REGISTRY: prefix must be in upper case. The <hive> part must be" NL
"one of:" NL
"" NL
" HKLM for HKEY_LOCAL_MACHINE" NL
" HKCU for HKEY_CURRENT_USER" NL
"" NL
"The values in config-key represent the options in the [DEFAULT] section."NL
"The keys below config-key represent other sections, and their values" NL
"represent the options. Only values of type REG_SZ whose name doesn't" NL
"start with a '#' will be used; other values, as well as the keys'" NL
"default values, will be ignored." NL
""
And in particular:
" REGISTRY:HKLM\\Software\\Tigris.org\\Subversion\\Servers" NL
Other that I doubt those comments are up to date (subversion doesn't
create such registry key on windows) ; is it possible to override the
value of the "servers" content with some registry keys?
If I understand properly the comments, I would need something like:
REGISTRY:HKLM\\Software\\Tigris.org\\Subversion\\Servers\\groups:
groupname = *.domain.com
REGISTRY:HKLM\\Software\\Tigris.org\\Subversion\\Servers\\groupname:
groupname = "http-timeout = 60\nhttp-auth-types = negotiate"
Am I reading this correctly?
If not, how do I set the servers file through the registry (if
possible of course)
Thank you
Jean-Yves