subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1125151 - /subversion/trunk/subversion/libsvn_wc/questions.c
Date Thu, 19 May 2011 22:43:52 GMT
Author: rhuijben
Date: Thu May 19 22:43:52 2011
New Revision: 1125151

URL: http://svn.apache.org/viewvc?rev=1125151&view=rev
Log:
* subversion/libsvn_wc/questions.c
  (svn_wc__internal_modified_p): Following up on r1101473, reintroduce the early-out when
    a file doesn't exist. This problem was the cause for issue #3892.

Modified:
    subversion/trunk/subversion/libsvn_wc/questions.c

Modified: subversion/trunk/subversion/libsvn_wc/questions.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/questions.c?rev=1125151&r1=1125150&r2=1125151&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/questions.c (original)
+++ subversion/trunk/subversion/libsvn_wc/questions.c Thu May 19 22:43:52 2011
@@ -276,6 +276,13 @@ svn_wc__internal_file_modified_p(svn_boo
   SVN_ERR(svn_io_stat_dirent(&dirent, local_abspath, TRUE,
                              scratch_pool, scratch_pool));
 
+  if (dirent->kind != svn_node_file)
+    {
+      /* There is no file on disk, so the text is missing, not modified. */
+      *modified_p = FALSE;
+      return SVN_NO_ERROR;
+    }
+
   if (! exact_comparison)
     {
       /* We're allowed to use a heuristic to determine whether files may



Mime
View raw message