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

How to "svn copy" over and over to the same file?

From: Subversion Newbie <subversionnewbie_at_yahoo.com>
Date: 2005-03-08 18:58:36 CET

I'm trying to implement a post-commit hook that, upon a
[certain] file being committed, copies that file (using svn
copy) to its equivalent in another part of the same repository.

At first glance I thought I could simply have the hook do a
"svn copy" of that file from one place in the repository to
another, but then realized it only works the first time, and
subsequent "svn copy" would give me the error "File ... already
exists".

My question is, what is the easiest way to implement this? Am I
really trying to simply merge the entire contents of the source
file onto the destination every time? (If so, what about the
first time when the destination doesn't yet exist?)

I'm sure there's a simple answer to this, but I haven't figured
out the easy way yet. Thanks in advance...

        
                
__________________________________
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 8 19:02:42 2005

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

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