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

[PATCH] Fix svn_log_changed_path_dup()

From: Madan U Sreenivasan <madan_at_collab.net>
Date: 2006-05-30 16:53:27 CEST

Hi,

    Pl. find attached a patch that fixes svn_log_changed_path_dup()
function.

[[[
Fix svn_log_changed_path_dup().

* subversion/libsvn_subr/constructors.c
   (svn_log_changed_path_dup): Fix the function.
    Modified to achieve the following:
       - Add comment for copying the `action' member variable
       - Fix copy of the `copyfrom_path' member variable
       - Copy `copyfrom_rev' member variable
]]]

Regards,
Madan.

PS : Contents below are for my personal patch management. Pl. do not
remove the below text
while replying to this mail.
MY-SVK-TAG: svn_log_changed_path_dup_fix

=== subversion/libsvn_subr/constructors.c
==================================================================
--- subversion/libsvn_subr/constructors.c (revision 600)
+++ subversion/libsvn_subr/constructors.c (local)
@@ -60,12 +60,16 @@
   svn_log_changed_path_t *new_changed_path
     = apr_palloc(pool, sizeof(*new_changed_path));
 
+ /* Copy action */
   *new_changed_path = *changed_path;
 
- if (new_changed_path->copyfrom_path)
- new_changed_path->copyfrom_path =
- apr_pstrdup(pool, new_changed_path->copyfrom_path);
+ /* Copy the copyfrom_path member variable */
+ new_changed_path->copyfrom_path =
+ apr_pstrdup(pool, changed_path->copyfrom_path);
 
+ /* Copy the copyfrom_rev member variable */
+ new_changed_path->copyfrom_rev = changed_path->copyfrom_rev;
+
   return new_changed_path;
 }
 

Fix svn_log_changed_path_dup().

* subversion/libsvn_subr/constructors.c
  (svn_log_changed_path_dup): Fix the function.
   Modified to achieve the following:
      - Add comment for copying the `action' member variable
      - Fix copy of the `copyfrom_path' member variable
      - Copy `copyfrom_rev' member variable

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue May 30 16:23:08 2006

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