subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r1030092 - /subversion/trunk/subversion/libsvn_wc/adm_ops.c
Date Tue, 02 Nov 2010 15:49:01 GMT
Author: julianfoad
Date: Tue Nov  2 15:49:01 2010
New Revision: 1030092

URL: http://svn.apache.org/viewvc?rev=1030092&view=rev
Log:
* subversion/libsvn_wc/adm_ops.c
  (check_can_add_to_parent): Take a 'wc_ctx' parameter instead of 'db',
    and put that parameter next to 'abspath', for consistency
    with similar functions.
  (svn_wc_add4, svn_wc_add_from_disk): Adjust calls.

Modified:
    subversion/trunk/subversion/libsvn_wc/adm_ops.c

Modified: subversion/trunk/subversion/libsvn_wc/adm_ops.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/adm_ops.c?rev=1030092&r1=1030091&r2=1030092&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/adm_ops.c (original)
+++ subversion/trunk/subversion/libsvn_wc/adm_ops.c Tue Nov  2 15:49:01 2010
@@ -763,13 +763,14 @@ add_from_disk(svn_wc_context_t *wc_ctx,
    in a state in which a new child node can be scheduled for addition;
    return an error if not. */
 static svn_error_t *
-check_can_add_to_parent(svn_wc__db_t *db,
-                        const char **repos_root_url,
+check_can_add_to_parent(const char **repos_root_url,
                         const char **repos_uuid,
+                        svn_wc_context_t *wc_ctx,
                         const char *local_abspath,
                         apr_pool_t *result_pool,
                         apr_pool_t *scratch_pool)
 {
+  svn_wc__db_t *db = wc_ctx->db;
   const char *parent_abspath = svn_dirent_dirname(local_abspath, scratch_pool);
   svn_wc__db_status_t parent_status;
   svn_wc__db_kind_t parent_kind;
@@ -975,8 +976,9 @@ svn_wc_add4(svn_wc_context_t *wc_ctx,
 
   /* Get REPOS_ROOT_URL and REPOS_UUID.  Check that the
      parent is a versioned directory in an acceptable state. */
-  SVN_ERR(check_can_add_to_parent(db, &repos_root_url, &repos_uuid,
-                                  local_abspath, scratch_pool, scratch_pool));
+  SVN_ERR(check_can_add_to_parent(&repos_root_url, &repos_uuid,
+                                  wc_ctx, local_abspath, scratch_pool,
+                                  scratch_pool));
 
   /* If we're performing a repos-to-WC copy, check that the copyfrom
      repository is the same as the parent dir's repository. */
@@ -1145,8 +1147,7 @@ svn_wc_add_from_disk(svn_wc_context_t *w
 
   SVN_ERR(check_can_add_node(&kind, NULL, NULL, wc_ctx, local_abspath,
                              NULL, SVN_INVALID_REVNUM, scratch_pool));
-  SVN_ERR(check_can_add_to_parent(wc_ctx->db, NULL, NULL,
-                                  local_abspath,
+  SVN_ERR(check_can_add_to_parent(NULL, NULL, wc_ctx, local_abspath,
                                   scratch_pool, scratch_pool));
   SVN_ERR(add_from_disk(wc_ctx, local_abspath, kind, scratch_pool));
 



Mime
View raw message