[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: Lübbe Onken <L.Onken_at_rac.de>
Date: 2003-10-01 15:23:28 CEST

Hi Ben,

> > 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.

Maybe I'm misunderstanding something here, but I think SVNs behaviour is
dangerous:

1) First Copy
svn copy http://myserver/myrepos/trunk/ http://myserver/myrepos/tags/Tag_01
creates http://myserver/myrepos/Tag_01, when http://myserver/myrepos/Tag_01
does not already exist.
This is what I expect to happen.

2) Second Copy
svn copy http://myserver/myrepos/trunk/ http://myserver/myrepos/tags/Tag_01
creates http://myserver/myrepos/Tag_01/trunk, when
http://myserver/myrepos/Tag_01 already exists.
This is where I'd expect a warning, that the destination already exist,
telling you where the copy would really end up and allowing you to cancel or
continue the operation.

Maybe I wanted to create Tag_02 and just mistyped it?!? Maybe a
day/week/month later I'll wonder where the tag I created a while ago has
disappeared?

3) Third Copy
svn copy http://myserver/myrepos/trunk/ http://myserver/myrepos/tags/Tag_01
fails with an error message, that the destination
http://myserver/myrepos/Tag_01/trunk, already exists. This is the Moment
where I would wake up and notice that something went wrong, but now it's too
late already.

Imagine a timed script creating tags that is not working properly.

> > Ist this a bug or....
>
> Nope.
Maybe not a bug but worth a thought?

Cheers
-Lübbe

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 1 15:29:26 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.