You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2011/05/31 19:08:41 UTC
svn commit: r1129805 - /subversion/trunk/subversion/libsvn_wc/wc_db.c
Author: julianfoad
Date: Tue May 31 17:08:41 2011
New Revision: 1129805
URL: http://svn.apache.org/viewvc?rev=1129805&view=rev
Log:
* subversion/libsvn_wc/wc_db.c
(insert_working_node): Remove redundant code: the symlink target was being
bound to the statement twice.
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=1129805&r1=1129804&r2=1129805&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db.c (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db.c Tue May 31 17:08:41 2011
@@ -1011,21 +1011,15 @@ insert_working_node(void *baton,
piwb->changed_rev,
piwb->changed_date,
piwb->changed_author,
+ /* Note: incomplete nodes may have a NULL target. */
(piwb->kind == svn_wc__db_kind_symlink)
? piwb->target : NULL));
-
if (piwb->kind == svn_wc__db_kind_file)
{
SVN_ERR(svn_sqlite__bind_checksum(stmt, 14, piwb->checksum,
scratch_pool));
}
- else if (piwb->kind == svn_wc__db_kind_symlink)
- {
- /* Note: incomplete nodes may have a NULL target. */
- if (piwb->target)
- SVN_ERR(svn_sqlite__bind_text(stmt, 19, piwb->target));
- }
if (piwb->original_repos_relpath != NULL)
{
@@ -1034,7 +1028,6 @@ insert_working_node(void *baton,
SVN_ERR(svn_sqlite__bind_int64(stmt, 7, piwb->original_revnum));
}
-
SVN_ERR(svn_sqlite__bind_properties(stmt, 15, piwb->props, scratch_pool));
SVN_ERR(svn_sqlite__insert(NULL, stmt));