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

need help with copy-on-update

From: Ben Collins-Sussman <sussman_at_red-bean.com>
Date: 2007-09-30 17:13:47 CEST

Maybe erik h. can help me here, or others?

I've gotten to the point in my patch where, during an 'svn update',
the server sends add_file(copyfrom=...), and the update editor now
locates the copyfrom-file already existing in the working copy.

What's missing is code to copy the existing file over to the new
location. We have routines like svn_wc_add_repos_file() (which is
used by svn_wc_copy()), but this core routine schedules the file for
addition, which I definitely don't want. I attempted to modify the
routine to *not* do this (i.e. do it optionally), but it turned into a
big hairy mess.

Maybe a better strategy is to run svn_wc_copy(), then go and hack on
the entries file to remove schedule-add stuff?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Sep 30 17:14:01 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.