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

[merge-tracking] Setting src_rel for WC -> URL copy/move

From: Daniel Rall <dlr_at_collab.net>
Date: 2007-02-15 01:02:07 CET

svn_client__copy_pair_t->src_rel is currently only set for URL -> WC
copy/move operations. I'd like to also set it for WC -> URL ops.
Does this sound reasonable?

I'm currently playing around with this patch:

Index: copy.c
===================================================================
--- copy.c (revision 23396)
+++ copy.c (working copy)
@@ -988,6 +988,10 @@
       svn_client__copy_pair_t *pair = APR_ARRAY_IDX(copy_pairs, i,
                                                     svn_client__copy_pair_t *);
 
+ SVN_ERR(svn_client__path_relative_to_root(&pair->src_rel, pair->src,
+ NULL, ra_session, adm_access,
+ pool));
+
       pair->dst_rel = svn_path_is_child(top_dst_url, pair->dst, pool);
       SVN_ERR(svn_ra_check_path(ra_session,
                                 svn_path_uri_decode(pair->dst_rel, pool),

  • application/pgp-signature attachment: stored
Received on Thu Feb 15 01:02:32 2007

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.