Jeff Putsch <putsch@mxim.com>


Suggested
r843380

r843380 | kfogel | 2002-10-05 17:06:06 +0000 (Sat, 05 Oct 2002)

With Mike Pilato, add "--non-interactive" option.

Suggested by: Jeff Putsch <putsch@mxim.com>

* subversion/clients/cmdline/main.c
  (svn_cl__options): Add "non-interactive" option.
  (svn_cl__cmd_table): Add it to the appropriate subcommands.
  (main): Parse for it.

* subversion/clients/cmdline/cl.h
  (svn_cl__non_interactive_opt): New option enum.
  (svn_cl__opt_state_t): New boolean non_interactive field.

* subversion/clients/cmdline/prompt.c
  (svn_cl__make_auth_baton): Don't set a prompt callback if
  opt_state->non_interactive is set.

* subversion/libsvn_client/auth.c
  (get_username, get_password): Check that prompt_callback exists
  before invoking.  Ensure that password gets set to some string
  value, even if only the empty string.  Document.
  (get_user_and_pass, store_user_and_pass): Document. 

* subversion/include/svn_ra.h
  (svn_ra_simple_password_authenticator_t): Redocument
  get_user_and_pass and store_user_and_pass.
  (svn_ra_username_authenticator_t): Redocument get_username and
  store_username.

* subversion/tests/clients/cmdline/getopt_tests_data/svn_help_log_switch_stdout
  Adjust.