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

[PATCH] --config-dir patch rev. 2

From: Shlomi Fish <shlomif_at_vipe.stud.technion.ac.il>
Date: 2003-07-24 10:17:24 CEST

This time this patch is more encompassing and applies to other functions
in svn_config.

Regards,

        Shlomi Fish

<<<
Added a --config-dir option to svn to override the configuration directory
with a new per-session parameter.

* subversion/svnadmin/main.c
  Added the svnadmin__config_dir option and configured it for all the
  options.
  (main): Added the processing of the config_dir option.
  (subcommand_create): added the config_dir param to svn_config_get_config

* svn_config.h
  Modified the declaration and documentation of svn_config_get_config
  to accept an overriding config_dir parameter. Ditto for svn_config_ensure
  , svn_config_read_auth_data and svn_config_write_auth_data.

* svn_auth.h
  Added the SVN_AUTH_PARAM_CONFIG_DIR parameter.

* subversion/libsvn_wc/log.c
  Removed the call to svn_config_get_config which seems like a leftover
  from ancient times.

* subversion/libsvn_subr/config_file.c
  (svn_config__user_config_path): added the config_dir parameter.
  (svn_config_ensure): added the config_dir parameter.

* subversion/libsvn_subr/config.c
  (get_category_config): added the config_dir param and made it override
  the other directories in case it is set.
  (svn_config_get_config): added the config_dir param and passed it to
  get_category_config

* subversion/libsvn_subr/config_auth.c
  (auth_file_path): added the config_dir param.
  (svn_config_read_auth_data): added and implemented the config_dir param.
  (svn_config_write_auth_data): added and implemented the config_dir param.

* subversion/libsvn_subr/config_impl.h
  Added the config_dir parameter to svn_config__user_config_path

* subversion/libsvn_client/providers.c
  (get_creds): read the config_dir from the parameters and passed it to
  read_auth_data.
  (save_creds): added the config_dir param and passed it to
  write_auth_data.
  (simple_save_creds): read the config_dir from the parameters
  and passed it to save_creds.
  (username_save_creds): read the config_dir from the parameters
  and passed it to save_creds.

* subversion/clients/cmdline/cl.h
  Added the svn_cl__config_dir_opt option.
  Added the config_dir parameter to the opt_state structure.

* subversion/clients/cmdline/main.c
  Added the config-dir option to the command line processing, and enabled
  it in all sub-commands.
  (main): Added processing of the svn_cl__config_dir_opt; passed
  config_dir to svn_config_get_config and set its paramter in svn_auth.
>>>

----------------------------------------------------------------------
Shlomi Fish shlomif@vipe.technion.ac.il
Home Page: http://t2.technion.ac.il/~shlomif/

An apple a day will keep a doctor away. Two apples a day will keep two
doctors away.

        Falk Fish

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

Received on Thu Jul 24 10:18:21 2003

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.