Author: rinrab
Date: Wed May 28 19:00:15 2025
New Revision: 1925910
URL: http://svn.apache.org/viewvc?rev=1925910&view=rev
Log:
Follow-up to r1925907: use svn_opt_parse_revnum() also for -r argument in
svnmucc.
* subversion/svnmucc/svnmucc.c
(sub_main::-r): ditto.
Modified:
subversion/trunk/subversion/svnmucc/svnmucc.c
Modified: subversion/trunk/subversion/svnmucc/svnmucc.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnmucc/svnmucc.c?rev=1925910&r1=1925909&r2=1925910&view=diff
==============================================================================
--- subversion/trunk/subversion/svnmucc/svnmucc.c (original)
+++ subversion/trunk/subversion/svnmucc/svnmucc.c Wed May 28 19:00:15 2025
@@ -595,19 +595,7 @@ sub_main(int *exit_code,
root_url = sanitize_url(root_url, pool);
break;
case 'r':
- {
- const char *saved_arg = arg;
- char *digits_end = NULL;
- while (*arg == 'r')
- arg++;
- base_revision = strtol(arg, &digits_end, 10);
- if ((! SVN_IS_VALID_REVNUM(base_revision))
- || (! digits_end)
- || *digits_end)
- return svn_error_createf(SVN_ERR_CL_ARG_PARSING_ERROR, NULL,
- _("Invalid revision number '%s'"),
- saved_arg);
- }
+ SVN_ERR(svn_opt_parse_revnum(&base_revision, arg));
break;
case with_revprop_opt:
SVN_ERR(svn_opt_parse_revprop(&revprops, arg, pool));
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.