You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2012/05/11 19:26:07 UTC

svn commit: r1337289 - /subversion/trunk/subversion/libsvn_client/commit_util.c

Author: rhuijben
Date: Fri May 11 17:26:07 2012
New Revision: 1337289

URL: http://svn.apache.org/viewvc?rev=1337289&view=rev
Log:
* subversion/libsvn_client/commit_util.c
  (harvest_status_callback): Use some already calculated values from the
    status report instead of performing expensive wc_db queries to obtain
    them again.

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

Modified: subversion/trunk/subversion/libsvn_client/commit_util.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/commit_util.c?rev=1337289&r1=1337288&r2=1337289&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/commit_util.c (original)
+++ subversion/trunk/subversion/libsvn_client/commit_util.c Fri May 11 17:26:07 2012
@@ -801,9 +801,8 @@ harvest_status_callback(void *status_bat
     return SVN_NO_ERROR; /* Not an operational delete and not an add. */
 
   if (node_relpath == NULL)
-    SVN_ERR(svn_wc__node_get_repos_relpath(&node_relpath,
-                                           wc_ctx, local_abspath,
-                                           scratch_pool, scratch_pool));
+    node_relpath = status->repos_relpath;
+
   /* Check for the deletion case.
      * We delete explicitly deleted nodes (duh!)
      * We delete not-present children of copies
@@ -914,8 +913,7 @@ harvest_status_callback(void *status_bat
         {
           /* Check for text mods.  */
           if (state_flags & SVN_CLIENT_COMMIT_ITEM_IS_COPY)
-            SVN_ERR(svn_wc_text_modified_p2(&text_mod, wc_ctx, local_abspath,
-                                            FALSE, scratch_pool));
+            text_mod = (status->text_status != svn_wc_status_normal);
           else
             text_mod = TRUE;
         }
@@ -933,8 +931,7 @@ harvest_status_callback(void *status_bat
          changed, we might have to send new text to the server to
          match the new newline style.  */
       if (db_kind == svn_node_file)
-        SVN_ERR(svn_wc_text_modified_p2(&text_mod, wc_ctx, local_abspath,
-                                        FALSE, scratch_pool));
+        text_mod = (status->text_status != svn_wc_status_normal);
     }
 
   /* Set text/prop modification flags accordingly. */