* subversion/clients/cmdline/main.c:
(main): Error out on CVS-style '-rM -rN' syntax and suggest -rM:N
instead.
Index: subversion/clients/cmdline/main.c
===================================================================
--- subversion/clients/cmdline/main.c
+++ subversion/clients/cmdline/main.c Wed Aug 14 15:27:08 2002
@@ -948,6 +948,17 @@
opt_state.message = apr_pstrdup (pool, opt_arg);
break;
case 'r':
+ if (opt_state.start_revision.kind != svn_client_revision_unspecified)
+ {
+ svn_handle_error (svn_error_create
+ (SVN_ERR_CL_ARG_PARSING_ERROR,
+ 0, NULL, pool,
+ "Multiple revision arguments encountered. "
+ "Try -rM:N instead of -rM -rN"),
+ stderr, FALSE);
+ svn_pool_destroy (pool);
+ return EXIT_FAILURE;
+ }
ret = svn_cl__parse_revision (&opt_state, opt_arg, pool);
if (ret)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Aug 14 22:35:52 2002