Author: rinrab
Date: Thu May 29 17:18:50 2025
New Revision: 1925947
URL: http://svn.apache.org/viewvc?rev=1925947&view=rev
Log:
On the 'utf8-cmdline-prototype' branch: Use svn_opt__collect_targets() in
svn_opt__process_target_array() to collect targets.
* subversion/libsvn_subr/opt.c
(svn_opt__process_target_array): ditto.
Modified:
subversion/branches/utf8-cmdline-prototype/subversion/libsvn_subr/opt.c
Modified:
subversion/branches/utf8-cmdline-prototype/subversion/libsvn_subr/opt.c
URL:
http://svn.apache.org/viewvc/subversion/branches/utf8-cmdline-prototype/subversion/libsvn_subr/opt.c?rev=1925947&r1=1925946&r2=1925947&view=diff
==============================================================================
--- subversion/branches/utf8-cmdline-prototype/subversion/libsvn_subr/opt.c
(original)
+++ subversion/branches/utf8-cmdline-prototype/subversion/libsvn_subr/opt.c Thu
May 29 17:18:50 2025
@@ -309,17 +309,8 @@ svn_opt__process_target_array(apr_array_
the targets left by apr_getopt, plus any extra targets (e.g., from the
--targets switch.) */
- if (known_targets)
- {
- for (i = 0; i < known_targets->nelts; i++)
- {
- /* The --targets array have already been converted to UTF-8,
- because we needed to split up the list with svn_cstring_split. */
- const char *utf8_target = APR_ARRAY_IDX(known_targets,
- i, const char *);
- APR_ARRAY_PUSH(input_targets, const char *) = utf8_target;
- }
- }
+ SVN_ERR(svn_opt__collect_targets(&input_targets, NULL, input_targets,
+ known_targets, pool));
/* Step 2: process each target. */