Hi,
I want to svn_client_diff_summarize_dup() for the Ruby
bindings.
[[[
Implement duplicate function of svn_client_diff_summarize_dup_t.
* subversion/libsvn_client/diff.c,
subversion/include/svn_client.h
(svn_client_diff_summarize_dup): New duplicate function.
]]]
Thanks,
--
kou
Index: subversion/libsvn_client/diff.c
===================================================================
--- subversion/libsvn_client/diff.c (revision 19432)
+++ subversion/libsvn_client/diff.c (working copy)
@@ -2324,6 +2324,21 @@
return SVN_NO_ERROR;
}
+svn_client_diff_summarize_t *
+svn_client_diff_summarize_dup(const svn_client_diff_summarize_t *diff,
+ apr_pool_t *pool)
+{
+ svn_client_diff_summarize_t *dup_diff = apr_palloc(pool, sizeof(*dup_diff));
+
+ *dup_diff = *diff;
+
+ if (diff->path)
+ dup_diff->path = apr_pstrdup(pool, diff->path);
+
+ return dup_diff;
+}
+
+
/*----------------------------------------------------------------------- */
/*** Public Interfaces. ***/
Index: subversion/include/svn_client.h
===================================================================
--- subversion/include/svn_client.h (revision 19432)
+++ subversion/include/svn_client.h (working copy)
@@ -535,6 +535,16 @@
svn_node_kind_t node_kind;
} svn_client_diff_summarize_t;
+/**
+ * Return a duplicate of @a diff, allocated in @a pool. No part of the new
+ * structure will be shared with @a diff.
+ *
+ * @since New in 1.4.
+ */
+svn_client_diff_summarize_t *
+svn_client_diff_summarize_dup(const svn_client_diff_summarize_t *diff,
+ apr_pool_t *pool);
+
/** A callback used in svn_client_diff_summarize() and
* svn_client_diff_summarize_peg() for reporting a @a diff summary.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Apr 20 15:39:43 2006