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

[PATCH] Return "Too many arguments" for 'svnadmin lslocks'

From: Noorul Islam K M <noorul_at_collab.net>
Date: Tue, 12 Jul 2011 13:08:13 +0530

Log
[[[

* subversion/svnadmin/main.c
  (subcommand_lslocks): Return better error message when too many
    arguments are passed to 'svnadmin lslocks'.

Patch by: Noorul Islam K M <noorul{_AT_}collab.net>
]]]

Index: subversion/svnadmin/main.c
===================================================================
--- subversion/svnadmin/main.c (revision 1145455)
+++ subversion/svnadmin/main.c (working copy)
@@ -1405,7 +1405,8 @@
                                                        sizeof(const char *)),
                                         pool));
   if (targets->nelts > 1)
- return svn_error_create(SVN_ERR_CL_ARG_PARSING_ERROR, 0, NULL);
+ return svn_error_create(SVN_ERR_CL_ARG_PARSING_ERROR, 0,
+ "Too many arguments");
   if (targets->nelts)
     fs_path = APR_ARRAY_IDX(targets, 0, const char *);
 
Received on 2011-07-12 09:40:46 CEST

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.