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

Re: [PATCH] svnserve to use a global configuration file

From: Blair Zajac <blair_at_orcaware.com>
Date: 2007-03-26 00:59:48 CEST

No review, being impatient and all :), so I committed this in r24119.

Regards,
Blair

On Mar 23, 2007, at 5:03 PM, Blair Zajac wrote:

> I would appreciate a review of this. I'll do the commit.
>
> Regards,
> Blair
>
>
> [[[
>
> Add the ability to specificy a global svnserve configuration file
> which will cause svnserve to ignore any per-repository configuration
> files. This is enabled with the --config-file command line option.
>
> * subversion/svnserve/server.h
> (serve_params_t):
> Add new fields:
> cfg - A svn_config_t holding a svnserve config file.
> pwdb - A svn_config_t holding a svnserve password file.
> authzdb - A svn_authz_t holding a svnserve authorization file.
> (load_configs):
> New function to load the configuration files.
>
> * subversion/svnserve/serve.c
> (find_repos):
> Move the code that loads the configuration, password and
> authorization files from here...
> (load_configs):
> ... into this new function.
> (serve):
> Instead of setting the server_baton_t's cfg, pwdb, authzdb fields
> to NULL, get their initial values from the passed in
> serve_params_t.
>
> * subversion/svnserve/main.c:
> (SVNSERVE_OPT_CONFIG_FILE):
> New constant for the getopt parsing.
> (svnserve__options):
> Add a new --config-file command line option that takes a single
> argument.
> (main):
> Set the new fields of the serve_params_t to NULL.
> If the --config-file option is used, then call load_configs().
>
> ]]]

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 26 01:00:22 2007

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