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

Re: svn commit: rev 1563 - trunk/subversion/include trunk/subversion/libsvn_subr trunk/subversion/clients/cmdline trunk/subversion/libsvn_ra_dav

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-03-22 00:13:47 CET

Hontvari Jozsef <hontvari@solware.com> writes:
> The correct behaviour would be to store these configuration files in the
> "Application Data" folder, under a Subversion subdirectory (or
> Subversion\.configuration). That directory is specific to a user. There is
> even an environment variable named "APPDATA" pointing to the "Application
> Data". This is true on Windows 2000.
>
> If - on a specific Windows version - there is no such environment variable,
> then IMHO a default directory should be used under the directory of the
> svn.exe.

Okay, thanks! Let me spell out my understanding so far, just to make
sure:

Under Windows (just Win 2000, or all Win32?), we will continue to
fetch configuration data from the Registry first. After any Registry
data is read, we'll merge in data from config files. We'll find the
config files in a config directory, which we'll locate like this:

   char *appdata_dir = getenv ("APPDATA");

   if (appdata_dir)
     {
        svn_config_dir = apr_psprintf
           (pool, "%s\\Subversion\\.configuration", appdata_dir);

        if (svn_config_dir does not exist)
          {
            svn_config_dir = apr_psprintf
               (pool, "%s\\Subversion", appdata_dir);
          }
     }
   else /* no APPDATA dir, so look in current working directory */
     {
        svn_config_dir = ".\\some-default-dir";
     }

Within that dir, the files will have the same names as they do in
~/.subversion/ under Unix -- that is, `proxies' etc.

Should some-default-dir be "Configuration" or ".configuration", or
something else entirely?

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 22 00:05:42 2002

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

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