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

Re: svn copy syntax

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-06-11 00:13:01 CEST

Mark Phippard wrote:

> I can live with that, but it was not what I expected

It works like Unix copy.

If A and B are both directories,

If B already exists,
    then 'svn cp A B' creates B/A
If B doesn't exist,
    then 'svn cp A B' creates B

So the command you want to run is exactly correct:

svn cp -r 1047 url://trunk url://maintenance/r1.0 -m "Comment"

The problem is that r1.0 already existed, so you ended up with the first
case, rather than the second case. Instead, allow the copy command to
*create* the r1.0 directory.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jun 11 00:15:12 2004

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.