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

Re: svn copy onto itself is possible

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-10-01 14:53:07 CEST

Lübbe Onken <L.Onken@rac.de> writes:

>
> svn copy http://myserver/myrepos/trunk/ http://myserver/myrepos/trunk/
>
> Subversion complied and created a copy in
> http://myserver/myrepos/trunk/trunk.

Yes, it's possible. There are no cycles here, because the commit is
creating an entirely new tree "N+1", where /trunk/trunk/ is just a
duplication of the /trunk directory in revision N.

> I don't know if that behaviour is desired, but I think a warning would have
> been a nice thing. This is the only time, that subversion doesn't warn you
> when the target URL already exists in the filesystem.

Why would it warn you? There's nothing wrong with the target URL
already existing.

'svn cp' behaves like 'unix cp'. If you run 'cp dir1/ dir2/', it
creates dir2/dir1/.

> Ist this a bug or....

Nope.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 1 14:54:57 2003

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.