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 10:12:14 UTC
svn commit: r992967 - /subversion/trunk/subversion/libsvn_wc/wc_db.c
Author: ehu
Date: Mon Sep 6 08:12:14 2010
New Revision: 992967
URL: http://svn.apache.org/viewvc?rev=992967&view=rev
Log:
Add another NODE_DATA query.
* subversion/libsvn_wc/wc_db.c
(svn_wc__db_temp_op_set_file_external): Insert data into NODE_DATA
when inserting into BASE_NODE.
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=992967&r1=992966&r2=992967&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db.c (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db.c Mon Sep 6 08:12:14 2010
@@ -9585,6 +9585,24 @@ svn_wc__db_temp_op_set_file_external(svn
kind_map, svn_wc__db_kind_file));
SVN_ERR(svn_sqlite__insert(NULL, stmt));
+
+#ifdef SVN_WC__NODE_DATA
+
+ SVN_ERR(svn_sqlite__get_statement(&stmt, pdh->wcroot->sdb,
+ STMT_INSERT_NODE_DATA));
+
+ SVN_ERR(svn_sqlite__bindf(stmt, "isistt",
+ pdh->wcroot->wc_id,
+ local_relpath,
+ (apr_int64_t)0, /* op_depth == BASE */
+ svn_relpath_dirname(local_relpath,
+ scratch_pool),
+ presence_map, svn_wc__db_status_not_present,
+ kind_map, svn_wc__db_kind_file));
+
+ SVN_ERR(svn_sqlite__insert(NULL, stmt));
+
+#endif
}
SVN_ERR(svn_sqlite__get_statement(&stmt, pdh->wcroot->sdb,