You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by "Glenn A. Thompson" <gt...@cdr.net> on 2002/06/06 17:21:04 UTC

svn_config_read

Hey folks.

A question or two.

I was reading svn_config.h and noticed that the svn_config_read may be
"de-exported".
<quote>
   ### Notes: This function, and future ones like it, rather obviates
   the need for svn_config_read() and svn_config_merge() as public
   interfaces.  However, I'm leaving them public for now, until it's
   clear they can be de-exported.  Hmm, funny how in this context, the
   opposite of "exported" is not "imported", eh?
</quote>

Can I/Should I use svn_config and specifically svn_config_read for
repos/fs specifc config files?

If so, can I submit a patch to return a hash of all sections in a
config?

One last thing:
Will I get major grief if I have a config file structure something like
the following: ?

[options_group_a_choice_a]
g_a_opt1 = foo
g_a_opt2 = bar
[options_group_a_choice_b]
g_a_opt1 = bar
g_a_opt2 = foo

[options_group_b_choice_a]
g_b_opt1 = bar
[options_group_b_choice_b]
g_b_opt1 = foo

[uber_group_a]
group_a = options_group_a_choice_b  /* section name reference */
group_b = options_group_b_choice_a  /* section name reference */

[uber_group_b]
group_a = options_group_a_choice_a  /* section name reference */
group_b = options_group_b_choice_b  /* section name reference */


Boy I hope this doesn't spark another "xml" vs "ini" incident :-)

Thanks,
gat


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn_config_read

Posted by Karl Fogel <kf...@newton.ch.collab.net>.
"Glenn A. Thompson" <gt...@cdr.net> writes:
> I was reading svn_config.h and noticed that the svn_config_read may be
> "de-exported".

If it turns out that callers of the svn APIs are using them, then we
won't de-export them.

> Can I/Should I use svn_config and specifically svn_config_read for
> repos/fs specifc config files?

Right now, the repos/fs config files don't use the same format as the
client-side config files, do they?  In fact, isn't there only a
Berkeley-specific db_conf file right now?  And that's read by
Berkeley, not by us.

Unless you're planning to add a config file(s) to the repository, and
use the same syntax as the client-side config files.  In which case,
the more important question is, what do the proposed files do? :-)

What's the larger picture here?

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org