You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Timothy Reaves <tr...@silverfields.com> on 2004/08/01 03:59:37 UTC
svn copy usage question
Hello all.
I'm attempting to use the svn copy command, and I use the format
directly from the book on svn:
svn copy trunk branches/my-calc-branch
This does not do as the book states and copy the content of the trunk
folder into the my-calc-branch folder. Instead, it copies the trunk
folder into the destination.
I have not been able to figure out how to only copy the contents of the
source folder into the destination. Would some one point me in the
correct direction?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svn copy usage question
Posted by "Peter N. Lundblad" <pe...@famlundblad.se>.
On Sat, 31 Jul 2004, Timothy Reaves wrote:
> I'm attempting to use the svn copy command, and I use the format
> directly from the book on svn:
> svn copy trunk branches/my-calc-branch
> This does not do as the book states and copy the content of the trunk
> folder into the my-calc-branch folder. Instead, it copies the trunk
> folder into the destination.
>
If you copy something and the destination already exists and is a folder,
the source will be copied to that folder. Maybe your folder already
existed?
Regards,
//Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svn copy usage question
Posted by Greg Hudson <gh...@MIT.EDU>.
On Sat, 2004-07-31 at 23:59, Timothy Reaves wrote:
> I'm attempting to use the svn copy command, and I use the format
> directly from the book on svn:
> svn copy trunk branches/my-calc-branch
> This does not do as the book states and copy the content of the trunk
> folder into the my-calc-branch folder. Instead, it copies the trunk
> folder into the destination.
A friend of mine had exactly the same misunderstanding, so perhaps the
book needs to be reworded on this point.
If you want to overlay the contents of branches/my-calc-branch with the
contents of trunk, that's not a single copy operation from Subversion's
point of view; that's a separate copy operation for each entry in
trunk. (And in current Subversion, that means either performing the
copy operation with a working copy, or doing it in multiple commits.)
You may want to review your processes and start using "svn merge"
instead of copies. Up to you, of course.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org