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

Re: subversion cp and the / at the end

From: John Szakmeister <john_at_szakmeister.net>
Date: 2005-01-11 12:23:11 CET

Clemens Schwaighofer wrote:
> Hi,
>
> I just found out through the hard way, that putting a / at the end of a
> path is a bad idea if you to copy for branching.
>
> I did
>
> svn cp svn://foo.host/clients/bar/project_a/dev/
> svn://foo.host/clients/bar/project_a/stable/
>
> and I had a dev dir in stable. *sigh* well you have to be careful what
> you do ...

This has less to do with the '/' at the end, and more to do with the
fact that the directory already exists. If you issue a 'svn cp A B',
and B is a directory that already exists, then it will copy A into B.

You have to remove the directory first, and then perform your the copy.

-John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jan 11 12:26:09 2005

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