Checkout
Julian Foad
committed
on 10 Nov 04
Simplify the svn_opt_args_to_target_array API because it was an ugly way of
combining two different functions into one.

* subversion/includ… Show more
Simplify the svn_opt_args_to_target_array API because it was an ugly way of

combining two different functions into one.

* subversion/include/svn_opt.h

 (svn_opt_args_to_target_array): Improve description.  Deprecate.

 (svn_opt_args_to_target_array2): New: a simpler version, appropriate

   for most commands.

* subversion/libsvn_subr/opt.c

 (svn_opt_args_to_target_array): Split the basic functionality out into

   svn_opt_args_to_target_array2.

 (svn_opt_args_to_target_array2): New, extracted from

   svn_opt_args_to_target_array.

* subversion/clients/cmdline/add-cmd.c (svn_cl__add):

* subversion/clients/cmdline/blame-cmd.c (svn_cl__blame):

* subversion/clients/cmdline/cat-cmd.c (svn_cl__cat):

* subversion/clients/cmdline/checkout-cmd.c (svn_cl__checkout):

* subversion/clients/cmdline/cleanup-cmd.c (svn_cl__cleanup):

* subversion/clients/cmdline/commit-cmd.c (svn_cl__commit):

* subversion/clients/cmdline/copy-cmd.c (svn_cl__copy):

* subversion/clients/cmdline/delete-cmd.c (svn_cl__delete):

* subversion/clients/cmdline/export-cmd.c (svn_cl__export):

* subversion/clients/cmdline/import-cmd.c (svn_cl__import):

* subversion/clients/cmdline/info-cmd.c (svn_cl__info):

* subversion/clients/cmdline/log-cmd.c (svn_cl__log):

* subversion/clients/cmdline/ls-cmd.c (svn_cl__ls):

* subversion/clients/cmdline/mkdir-cmd.c (svn_cl__mkdir):

* subversion/clients/cmdline/move-cmd.c (svn_cl__move):

* subversion/clients/cmdline/propdel-cmd.c (svn_cl__propdel):

* subversion/clients/cmdline/propedit-cmd.c (svn_cl__propedit):

* subversion/clients/cmdline/propget-cmd.c (svn_cl__propget):

* subversion/clients/cmdline/proplist-cmd.c (svn_cl__proplist):

* subversion/clients/cmdline/propset-cmd.c (svn_cl__propset):

* subversion/clients/cmdline/resolved-cmd.c (svn_cl__resolved):

* subversion/clients/cmdline/revert-cmd.c (svn_cl__revert):

* subversion/clients/cmdline/status-cmd.c (svn_cl__status):

* subversion/clients/cmdline/switch-cmd.c (svn_cl__switch):

* subversion/clients/cmdline/update-cmd.c (svn_cl__update):

 Use svn_opt_args_to_target_array2 instead of svn_opt_args_to_target_array.

* subversion/clients/cmdline/diff-cmd.c (svn_cl__diff):

 Use svn_opt_args_to_target_array2 instead of svn_opt_args_to_target_array

 in some cases.

Show less