You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by gs...@apache.org on 2010/05/10 21:17:25 UTC

svn commit: r942858 - in /subversion/trunk/subversion/libsvn_wc: wc-queries.sql wc_db.c wc_db.h

Author: gstein
Date: Mon May 10 19:17:25 2010
New Revision: 942858

URL: http://svn.apache.org/viewvc?rev=942858&view=rev
Log:
Remove svn_wc__db_temp_op_set_working_last_change. No longer needed.

* subversion/libsvn_wc/wc_db.h:
* subversion/libsvn_wc/wc_db.c:
  (svn_wc__db_temp_op_set_working_last_change): removed

* subversion/libsvn_wc/wc-queries.sql:
  (STMT_UPDATE_WORKING_LAST_CHANGE): removed. no longer used.

Modified:
    subversion/trunk/subversion/libsvn_wc/wc-queries.sql
    subversion/trunk/subversion/libsvn_wc/wc_db.c
    subversion/trunk/subversion/libsvn_wc/wc_db.h

Modified: subversion/trunk/subversion/libsvn_wc/wc-queries.sql
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc-queries.sql?rev=942858&r1=942857&r2=942858&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc-queries.sql (original)
+++ subversion/trunk/subversion/libsvn_wc/wc-queries.sql Mon May 10 19:17:25 2010
@@ -464,10 +464,6 @@ where wc_id = ?1 and local_relpath = ?2;
 update base_node set file_external = ?3
 where wc_id = ?1 and local_relpath = ?2;
 
--- STMT_UPDATE_WORKING_LAST_CHANGE
-update working_node set changed_rev = ?3, changed_date = ?4, changed_author = ?5
-where wc_id = ?1 and local_relpath = ?2;
-
 -- STMT_UPDATE_WORKING_CHECKSUM
 update working_node set checksum = ?3
 where wc_id = ?1 and local_relpath = ?2;

Modified: subversion/trunk/subversion/libsvn_wc/wc_db.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc_db.c?rev=942858&r1=942857&r2=942858&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db.c (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db.c Mon May 10 19:17:25 2010
@@ -7087,50 +7087,6 @@ svn_wc__db_temp_op_set_working_incomplet
 
 
 svn_error_t *
-svn_wc__db_temp_op_set_working_last_change(svn_wc__db_t *db,
-                                           const char *local_abspath,
-                                           svn_revnum_t changed_rev,
-                                           apr_time_t changed_date,
-                                           const char *changed_author,
-                                           apr_pool_t *scratch_pool)
-{
-  svn_wc__db_pdh_t *pdh;
-  svn_sqlite__stmt_t *stmt;
-  const char *local_relpath;
-  int affected;
-
-  SVN_ERR_ASSERT(svn_dirent_is_absolute(local_abspath));
-
-  SVN_ERR(parse_local_abspath(&pdh, &local_relpath, db, local_abspath,
-                              svn_sqlite__mode_readwrite,
-                              scratch_pool, scratch_pool));
-  VERIFY_USABLE_PDH(pdh);
-
-  SVN_ERR(svn_sqlite__get_statement(&stmt, pdh->wcroot->sdb,
-                                    STMT_UPDATE_WORKING_LAST_CHANGE));
-
-  SVN_ERR(svn_sqlite__bindf(stmt, "isiis",
-                            pdh->wcroot->wc_id, local_relpath,
-                            (apr_int64_t)changed_rev,
-                            (apr_int64_t)changed_date,
-                            changed_author));
-
-  SVN_ERR(svn_sqlite__update(&affected, stmt));
-
-  /* The following check might fail if none of the values changes.
-     But currently this function is never called in such cases */
-  if (affected != 1)
-    return svn_error_createf(SVN_ERR_WC_PATH_NOT_FOUND, NULL,
-                             _("'%s' has no WORKING_NODE"),
-                             svn_dirent_local_style(local_abspath,
-                                                    scratch_pool));
-
-  flush_entries(pdh);
-
-  return SVN_NO_ERROR;
-}
-
-svn_error_t *
 svn_wc__db_temp_op_set_working_checksum(svn_wc__db_t *db,
                                         const char *local_abspath,
                                         const svn_checksum_t *checksum,

Modified: subversion/trunk/subversion/libsvn_wc/wc_db.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc_db.h?rev=942858&r1=942857&r2=942858&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db.h (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db.h Mon May 10 19:17:25 2010
@@ -2284,15 +2284,6 @@ svn_wc__db_temp_op_set_working_incomplet
                                           apr_pool_t *scratch_pool);
 
 
-/* Update changed information in WORKING_NODE with the supplied values */
-svn_error_t *
-svn_wc__db_temp_op_set_working_last_change(svn_wc__db_t *db,
-                                           const char *local_abspath,
-                                           svn_revnum_t changed_rev,
-                                           apr_time_t changed_date,
-                                           const char *changed_author,
-                                           apr_pool_t *scratch_pool);
-
 /* Set the pristine text checksum of the WORKING_NODE of LOCAL_ABSPATH in DB
    to CHECKSUM. */
 svn_error_t *