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

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

Author: hwright
Date: Tue Oct 26 03:54:13 2010
New Revision: 1027358

URL: http://svn.apache.org/viewvc?rev=1027358&view=rev
Log:
Rename a variable.

* subversion/libsvn_wc/wc_db.c
  (set_tc_baton): Rename local_relpath to parent_relpath ('cause it is the
    relpath of the parent_abspath).
  (set_tc_txn, svn_wc__db_op_set_tree_conflict): Update references.

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=1027358&r1=1027357&r2=1027358&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db.c (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db.c Tue Oct 26 03:54:13 2010
@@ -3787,7 +3787,7 @@ struct set_tc_baton
 {
   const char *local_abspath;
   apr_int64_t wc_id;
-  const char *local_relpath;
+  const char *parent_relpath;
   const char *parent_abspath;
   const svn_wc_conflict_description2_t *tree_conflict;
 };
@@ -3805,7 +3805,7 @@ set_tc_txn(void *baton, svn_sqlite__db_t
 
   /* Get the conflict information for the parent of LOCAL_ABSPATH. */
   SVN_ERR(svn_sqlite__get_statement(&stmt, sdb, STMT_SELECT_ACTUAL_NODE));
-  SVN_ERR(svn_sqlite__bindf(stmt, "is", stb->wc_id, stb->local_relpath));
+  SVN_ERR(svn_sqlite__bindf(stmt, "is", stb->wc_id, stb->parent_relpath));
   SVN_ERR(svn_sqlite__step(&have_row, stmt));
 
   /* No ACTUAL node, no conflict info, no problem. */
@@ -3847,12 +3847,12 @@ set_tc_txn(void *baton, svn_sqlite__db_t
                                         STMT_INSERT_ACTUAL_TREE_CONFLICTS));
     }
 
-  SVN_ERR(svn_sqlite__bindf(stmt, "iss", stb->wc_id, stb->local_relpath,
+  SVN_ERR(svn_sqlite__bindf(stmt, "iss", stb->wc_id, stb->parent_relpath,
                             tree_conflict_data));
 
-  if (!have_row && stb->local_relpath[0])
+  if (!have_row && stb->parent_relpath[0])
     SVN_ERR(svn_sqlite__bind_text(stmt, 4,
-                                  svn_dirent_dirname(stb->local_relpath,
+                                  svn_dirent_dirname(stb->parent_relpath,
                                                      scratch_pool)));
 
   return svn_error_return(svn_sqlite__step_done(stmt));
@@ -3871,7 +3871,7 @@ svn_wc__db_op_set_tree_conflict(svn_wc__
   SVN_ERR_ASSERT(svn_dirent_is_absolute(local_abspath));
   stb.parent_abspath = svn_dirent_dirname(local_abspath, scratch_pool);
 
-  SVN_ERR(svn_wc__db_pdh_parse_local_abspath(&pdh, &stb.local_relpath, db,
+  SVN_ERR(svn_wc__db_pdh_parse_local_abspath(&pdh, &stb.parent_relpath, db,
                               stb.parent_abspath, svn_sqlite__mode_readwrite,
                               scratch_pool, scratch_pool));
   VERIFY_USABLE_PDH(pdh);