Author: stefan2
Date: Wed May 25 21:41:34 2011
New Revision: 1127695

URL: http://svn.apache.org/viewvc?rev=1127695&view=rev
Log:
Make the "clean checkout" detection actually work: reading a dir
will *always* end with an ENOENT error. Expect that and disable
the optimization only if something else happens.

* subversion/libsvn_client/update.c
  (is_empty_wc): check for the kind of error we received before
   possibly declaring the folder "unclean"

Modified:
    subversion/trunk/subversion/libsvn_client/update.c

Modified: subversion/trunk/subversion/libsvn_client/update.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/update.c?rev=1127695&r1=1127694&r2=1127695&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/update.c (original)
+++ subversion/trunk/subversion/libsvn_client/update.c Wed May 25 21:41:34 2011
@@ -145,12 +145,16 @@ is_empty_wc(svn_boolean_t *clean_checkou
             }
         }
     }
-  
+
   if (err)
     {
-      /* There was some issue reading the folder content.
-       * We better disable optimizations in that case. */
-      *clean_checkout = FALSE;
+      if (! APR_STATUS_IS_ENOENT(err->apr_err))
+        {
+          /* There was some issue reading the folder content.
+           * We better disable optimizations in that case. */
+          *clean_checkout = FALSE;
+        }
+
       svn_error_clear(err);
     }
 


Reply via email to