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 2014/07/01 19:00:02 UTC

svn commit: r1607144 - in /subversion/branches/move-tracking-2/subversion: include/private/svn_editor3.h libsvn_delta/editor3.c

Author: julianfoad
Date: Tue Jul  1 17:00:01 2014
New Revision: 1607144

URL: http://svn.apache.org/r1607144
Log:
On the 'moves-tracking-2' branch: add a simple constructor.

* subversion/include/private/svn_editor3.h,
  subversion/libsvn_delta/editor3.c
  (svn_editor3_node_content_create_ref): New constructor.

Modified:
    subversion/branches/move-tracking-2/subversion/include/private/svn_editor3.h
    subversion/branches/move-tracking-2/subversion/libsvn_delta/editor3.c

Modified: subversion/branches/move-tracking-2/subversion/include/private/svn_editor3.h
URL: http://svn.apache.org/viewvc/subversion/branches/move-tracking-2/subversion/include/private/svn_editor3.h?rev=1607144&r1=1607143&r2=1607144&view=diff
==============================================================================
--- subversion/branches/move-tracking-2/subversion/include/private/svn_editor3.h (original)
+++ subversion/branches/move-tracking-2/subversion/include/private/svn_editor3.h Tue Jul  1 17:00:01 2014
@@ -1129,6 +1129,13 @@ struct svn_editor3_node_content_t
 svn_editor3_node_content_dup(const svn_editor3_node_content_t *old,
                              apr_pool_t *result_pool); */
 
+/* Create a new node-content object by reference to an existing node.
+ *
+ * Allocate it in @a result_pool. */
+svn_editor3_node_content_t *
+svn_editor3_node_content_create_ref(svn_editor3_peg_path_t ref,
+                                    apr_pool_t *result_pool);
+
 /* Create a new node-content object for a directory node.
  *
  * Allocate it in @a result_pool. */

Modified: subversion/branches/move-tracking-2/subversion/libsvn_delta/editor3.c
URL: http://svn.apache.org/viewvc/subversion/branches/move-tracking-2/subversion/libsvn_delta/editor3.c?rev=1607144&r1=1607143&r2=1607144&view=diff
==============================================================================
--- subversion/branches/move-tracking-2/subversion/libsvn_delta/editor3.c (original)
+++ subversion/branches/move-tracking-2/subversion/libsvn_delta/editor3.c Tue Jul  1 17:00:01 2014
@@ -485,6 +485,18 @@ svn_editor3_abort(svn_editor3_t *editor)
 }
 
 svn_editor3_node_content_t *
+svn_editor3_node_content_create_ref(svn_editor3_peg_path_t ref,
+                                    apr_pool_t *result_pool)
+{
+  svn_editor3_node_content_t *new_content
+    = apr_pcalloc(result_pool, sizeof(new_content));
+
+  new_content->kind = svn_node_unknown;
+  new_content->ref = ref;
+  return new_content;
+}
+
+svn_editor3_node_content_t *
 svn_editor3_node_content_create_dir(svn_editor3_peg_path_t ref,
                                     apr_hash_t *props,
                                     apr_pool_t *result_pool)