Author: stsp
Date: Wed Oct 19 09:48:43 2011
New Revision: 1186059

URL: http://svn.apache.org/viewvc?rev=1186059&view=rev
Log:
* subversion/svn/add-cmd.c
  (svn_cl__add): Test the right error codes when deciding whether to report
   about targets which could not be added.

Found by: julianfoad

Modified:
    subversion/trunk/subversion/svn/add-cmd.c

Modified: subversion/trunk/subversion/svn/add-cmd.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/svn/add-cmd.c?rev=1186059&r1=1186058&r2=1186059&view=diff
==============================================================================
--- subversion/trunk/subversion/svn/add-cmd.c (original)
+++ subversion/trunk/subversion/svn/add-cmd.c Wed Oct 19 09:48:43 2011
@@ -95,11 +95,11 @@ svn_cl__add(apr_getopt_t *os,
       for (i = 0; i < errors->nelts; i++)
         {
           apr_status_t status = APR_ARRAY_IDX(errors, i, apr_status_t);
-          if (status == SVN_ERR_ENTRY_NOT_FOUND)
+          if (status == SVN_ERR_WC_PATH_NOT_FOUND)
             err = svn_error_quick_wrap(err,
                                        _("Could not add all targets because "
                                          "some targets don't exist"));
-          else if (status == SVN_ERR_UNVERSIONED_RESOURCE)
+          else if (status == SVN_ERR_ENTRY_EXISTS)
             err = svn_error_quick_wrap(err,
                                        _("Could not add all targets because "
                                          "some targets are already 
versioned"));


Reply via email to