[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Error out on cvs-style -rM -rN syntax

From: Scott Lamb <slamb_at_slamb.org>
Date: 2002-08-14 22:32:31 CEST

* 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

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.