Re: svn commit: r1590751 - /subversion/trunk/subversion/svn/svn.c
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Tue, 29 Apr 2014 09:56:47 +0100 (BST)
> Author: philip
> URL: http://svn.apache.org/r1590751
Hi Philip.
I'm wondering why you create the two SVN_CONFIG_CATEGORY_... entries in
The main thing 'svn' does with the config hash is pass it to svn_client_create_context2(), and that already claims to accept NULL. The only other things we do with it are to call svn_hash_gets(), which could be trivially conditionalized, and call svn_cmdline__apply_config_options(). That last call is the only place where we need to actually create a hash. Any reason not to do it there?
What about the other command-line programs, don't they want the same? svnmucc had the same code in it, and svnrdump and svnsync both call svn_config_get_config() without any error handling at all, and presumably all of these should handle these conditions like 'svn' does. svnadmin has a config_dir option but doesn't use it. (We should maybe fix its help to say it's unused, or remove the option, or something.) The other programs don't use a config dir.
I note that you proposed this for back-port to 1.8.
- Julian
>
> Modified: subversion/trunk/subversion/svn/svn.c
|
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.