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

Re: Force copy

From: Lieven Govaerts <lgo_at_mobsol.be>
Date: 2006-03-02 18:31:48 CET

Quoting "Martin, John M. \\(Number Six Software\\)" <John.Martin5@va.gov>:

> Is there a way to overwrite an existing file when copying from one place
> to another? It sure would be nice to do something like
>
> svn cp -force myfile
> http://server/project/branches/my_favorite_branche/myfile
>
> and not get the file already exists.

I have no idea.

> Same with merge. Sometimes I want to take the contents of one branch
> and replace the contents of another branch (especially with binaries).
>
> -->John

To replace the contents of one branch by another, you can use the copy-merge
action.

Suppose you want the content of branchA to branchB, overwriting everything in
branchB. With a copy-merge, you compare the two branches branchA & branchB, and
merge the differences between them to branchB:

svn merge http://.../branchB http://.../branchA /wc/of/branchB

This type of merging is used to release code, and is described in that part of
the subversion book:
http://svnbook.red-bean.com/nightly/en/svn.branchmerge.commonuses.html#svn.branchmerge.commonuses.patterns.feature

Lieven.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Mar 2 18:35:23 2006

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.