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

[PATCH] Fix for issue #3938 - revert throws an error for unversioned targets

From: Noorul Islam K M <noorul_at_collab.net>
Date: Fri, 24 Jun 2011 17:05:04 +0530

Log

[[[
Fix for issue #3938. Make 'svn revert' to skip unversioned targets.

* subversion/libsvn_client/revert.c
  (revert): Send 'skip' notification when svn_wc_revert4() returns
    SVN_ERR_WC_PATH_NOT_FOUND.

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

Thanks and Regards
Noorul

Index: subversion/libsvn_client/revert.c
===================================================================
--- subversion/libsvn_client/revert.c (revision 1139198)
+++ subversion/libsvn_client/revert.c (working copy)
@@ -91,7 +91,8 @@
       /* If target isn't versioned, just send a 'skip'
          notification and move on. */
       if (err->apr_err == SVN_ERR_ENTRY_NOT_FOUND
- || err->apr_err == SVN_ERR_UNVERSIONED_RESOURCE)
+ || err->apr_err == SVN_ERR_UNVERSIONED_RESOURCE
+ || err->apr_err == SVN_ERR_WC_PATH_NOT_FOUND)
         {
           if (b->ctx->notify_func2)
             (*b->ctx->notify_func2)
Received on 2011-06-24 13:37:15 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.