Author: rinrab
Date: Fri Jun 27 22:10:00 2025
New Revision: 1926788

URL: http://svn.apache.org/viewvc?rev=1926788&view=rev
Log:
On the 'utf8-cmdline-prototype' branch: Rename argument to prevent
mentioning 'utf8' in its name, since it is in UTF-8 encoding by libsvn's
convention.

* subversion/include/svn_opt.h,
  subversion/libsvn_subr/opt.c
  (svn_opt_parse_revprop2): revprop_spec_utf8 → revprop_spec.

Modified:
    subversion/branches/utf8-cmdline-prototype/subversion/include/svn_opt.h
    subversion/branches/utf8-cmdline-prototype/subversion/libsvn_subr/opt.c

Modified: 
subversion/branches/utf8-cmdline-prototype/subversion/include/svn_opt.h
URL: 
http://svn.apache.org/viewvc/subversion/branches/utf8-cmdline-prototype/subversion/include/svn_opt.h?rev=1926788&r1=1926787&r2=1926788&view=diff
==============================================================================
--- subversion/branches/utf8-cmdline-prototype/subversion/include/svn_opt.h 
(original)
+++ subversion/branches/utf8-cmdline-prototype/subversion/include/svn_opt.h Fri 
Jun 27 22:10:00 2025
@@ -706,7 +706,7 @@ svn_opt_args_to_target_array(apr_array_h
  */
 svn_error_t *
 svn_opt_parse_revprop2(apr_hash_t **revprops,
-                       const char *revprop_spec_utf8,
+                       const char *revprop_spec,
                        apr_pool_t *pool);
 
 /**

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=1926788&r1=1926787&r2=1926788&view=diff
==============================================================================
--- subversion/branches/utf8-cmdline-prototype/subversion/libsvn_subr/opt.c 
(original)
+++ subversion/branches/utf8-cmdline-prototype/subversion/libsvn_subr/opt.c Fri 
Jun 27 22:10:00 2025
@@ -352,29 +352,28 @@ svn_opt__process_target_array(apr_array_
 
 svn_error_t *
 svn_opt_parse_revprop2(apr_hash_t **revprop_table_p,
-                       const char *revprop_spec_utf8,
+                       const char *revprop_spec,
                        apr_pool_t *pool)
 {
   const char *sep, *propname;
   svn_string_t *propval;
 
-  if (!*revprop_spec_utf8)
+  if (!*revprop_spec)
     return svn_error_create(SVN_ERR_CL_ARG_PARSING_ERROR, NULL,
                             _("Revision property pair is empty"));
 
   if (!*revprop_table_p)
     *revprop_table_p = apr_hash_make(pool);
 
-  sep = strchr(revprop_spec_utf8, '=');
+  sep = strchr(revprop_spec, '=');
   if (sep)
     {
-      propname =
-          apr_pstrndup(pool, revprop_spec_utf8, sep - revprop_spec_utf8);
+      propname = apr_pstrndup(pool, revprop_spec, sep - revprop_spec);
       propval = svn_string_create(sep + 1, pool);
     }
   else
     {
-      propname = apr_pstrdup(pool, revprop_spec_utf8);
+      propname = apr_pstrdup(pool, revprop_spec);
       propval = svn_string_create_empty(pool);
     }
 


Reply via email to