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

RE: Re: Force copy

From: Martin, John M. \(Number Six Software\) <John.Martin5_at_va.gov>
Date: 2006-03-02 20:51:55 CET

Thanks. But that requires that I merge into my working copy.

I'd like to be able to do what cp lets me do: copy directly to a branch
(or tag, especially) in the repository without having to have a working
copy of that branch (or tag).

-----Original Message-----
From: Lieven Govaerts [mailto:lgo@mobsol.be]
Sent: Thursday, March 02, 2006 12:32 PM
To: ""@
Cc: users@subversion.tigris.org
Subject: Re: Force copy

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#s
vn.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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Mar 2 20:53:58 2006

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