You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2010/01/12 21:14:36 UTC

svn commit: r898492 - /subversion/trunk/subversion/libsvn_wc/questions.c

Author: hwright
Date: Tue Jan 12 20:14:36 2010
New Revision: 898492

URL: http://svn.apache.org/viewvc?rev=898492&view=rev
Log:
Use the proper streamy function to read the pristine contents, and thereby fix a
bungled commit in r898406.

* subversion/libsvn_wc/questions.c
  (svn_wc__internal_text_modified_p): Use svn_wc__get_pristine_contents() to
    fetch the pristine contents for the requested path.

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=898492&r1=898491&r2=898492&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/questions.c (original)
+++ subversion/trunk/subversion/libsvn_wc/questions.c Tue Jan 12 20:14:36 2010
@@ -266,7 +266,6 @@
                                  apr_pool_t *scratch_pool)
 {
   svn_stream_t *pristine_stream;
-  svn_node_kind_t kind;
   svn_error_t *err;
   apr_finfo_t finfo;
 
@@ -359,27 +358,14 @@
      yet committed. */
   /* We used to stat for the working base here, but we just give
      compare_and_verify a try; we'll check for errors afterwards */
-  SVN_ERR(svn_wc__db_pristine_read(&pristine_stream, db, local_abspath, NULL,
-                                   scratch_pool, scratch_pool));
-  /*if (err)
+  err = svn_wc__get_pristine_contents(&pristine_stream, db, local_abspath,
+                                      scratch_pool, scratch_pool);
+  if (err && APR_STATUS_IS_ENOENT(err->apr_err))
     {
-      svn_error_t *err2 = svn_io_check_path(textbase_abspath, &kind,
-                                            scratch_pool);
-      if (! err2 && kind != svn_node_file)
-        {
-          svn_error_clear(err);
-          *modified_p = TRUE;
-          return SVN_NO_ERROR;
-        }
-
-      if (err2)
-        {
-          svn_error_clear(err);
-          return err2;
-        }
-
-      return err;
-    }*/
+      svn_error_clear(err);
+      *modified_p = TRUE;
+      return SVN_NO_ERROR;
+    }
 
   /* Check all bytes, and verify checksum if requested. */
   SVN_ERR(compare_and_verify(modified_p, db, local_abspath, pristine_stream,