[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svn_client_diff_summarize_dup

From: Kouhei Sutou <kou_at_cozmixng.org>
Date: 2006-04-20 15:38:43 CEST

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

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.