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 2010/06/30 23:17:54 UTC
svn commit: r959436 - /subversion/trunk/subversion/libsvn_wc/wc_db.c
Author: rhuijben
Date: Wed Jun 30 21:17:52 2010
New Revision: 959436
URL: http://svn.apache.org/viewvc?rev=959436&view=rev
Log:
* subversion/libsvn_wc/wc_db.c
(svn_wc__db_base_add_absent_node): Don't set data that only belongs in the
real node in its parent stub.
Suggested by: gstein
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=959436&r1=959435&r2=959436&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db.c (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db.c Wed Jun 30 21:17:52 2010
@@ -1647,21 +1647,7 @@ svn_wc__db_base_add_absent_node(svn_wc__
ibb.repos_id = repos_id;
ibb.repos_relpath = repos_relpath;
ibb.revision = revision;
-
- /* Depending upon KIND, any of these might get used. */
- ibb.children = NULL;
- ibb.depth = svn_depth_unknown;
- ibb.checksum = NULL;
- ibb.translated_size = SVN_INVALID_FILESIZE;
- ibb.target = NULL;
-
- ibb.conflict = conflict;
- ibb.work_items = work_items;
-
- /* ### hmm. if this used to be a directory, we should remove children.
- ### or maybe let caller deal with that, if there is a possibility
- ### of a node kind change (rather than eat an extra lookup here). */
-
+
SVN_ERR(svn_sqlite__with_transaction(pdh->wcroot->sdb,
insert_base_node, &ibb,
scratch_pool));