[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Overriding some settings in the registry

From: Jean-Yves Avenard <jyavenard_at_gmail.com>
Date: Fri, 24 Sep 2010 16:22:25 +1000

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
Received on 2010-09-24 08:23:08 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.