You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by eh...@apache.org on 2010/09/06 22:45:10 UTC

svn commit: r993149 - /subversion/trunk/subversion/libsvn_wc/wc_db.c

Author: ehu
Date: Mon Sep  6 20:45:10 2010
New Revision: 993149

URL: http://svn.apache.org/viewvc?rev=993149&view=rev
Log:
Mark more sections SVN_WC__NODES_ONLY.

 * subversion/libsvn_wc/wc_db.c
   (svn_wc__db_temp_op_set_file_external,
    set_new_dir_to_incomplete_txn): Enclose sections in ifndef/endif.


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

Modified: subversion/trunk/subversion/libsvn_wc/wc_db.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc_db.c?rev=993149&r1=993148&r2=993149&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db.c (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db.c Mon Sep  6 20:45:10 2010
@@ -8601,6 +8601,7 @@ svn_wc__db_temp_op_set_file_external(svn
       SVN_ERR(create_repos_id(&repos_id, repos_root_url, repos_uuid,
                               pdh->wcroot->sdb, scratch_pool));
 
+#ifndef SVN_WC__NODES_ONLY
       /* ### Insert a switched not present base node. Luckily this hack
              is not as ugly as the original file externals hack. */
       SVN_ERR(svn_sqlite__get_statement(&stmt, pdh->wcroot->sdb,
@@ -8617,6 +8618,7 @@ svn_wc__db_temp_op_set_file_external(svn
                                 kind_map, svn_wc__db_kind_file));
 
       SVN_ERR(svn_sqlite__insert(NULL, stmt));
+#endif
 
 #ifdef SVN_WC__NODES
 
@@ -8923,7 +8925,7 @@ set_new_dir_to_incomplete_txn(void *bato
   SVN_ERR(svn_sqlite__step_done(stmt));
 #endif
 
-
+#ifndef SVN_WC__NODES_ONLY
   /* Insert the incomplete base node */
   SVN_ERR(svn_sqlite__get_statement(&stmt, dtb->pdh->wcroot->sdb,
                                     STMT_INSERT_BASE_NODE_INCOMPLETE_DIR));
@@ -8940,6 +8942,8 @@ set_new_dir_to_incomplete_txn(void *bato
     SVN_ERR(svn_sqlite__bind_text(stmt, 7, svn_depth_to_word(dtb->depth)));
 
   SVN_ERR(svn_sqlite__step_done(stmt));
+#endif
+
 
 #ifdef SVN_WC__NODE_DATA