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

svn copy twice to same folder creates unexpeted subfolder in destination

From: Roger Périat <roger.periat_at_bluewin.ch>
Date: Thu, 7 Nov 2019 14:16:14 +0100

Hi all

Not sure if this is a bug or not.

Doing a svn copy twice to same destination, does create an unexpected
subfolder in destination.

1) first step

(The tags folder exists and is empty)

svn copy file:///D:/tmp/myrepo/trunk file:///D:/tmp/myrepo/tags/v1 -m
"this is v1"

What we see:

- v1 is created in tags by this command

- v1 contains a copy of trunk after this command

- All ok until now.

2) second step

Issuing the same command once more, I would expect an error saying the
destination folder ('v1') already exists. But this is not the case, the
command ends normally.

svn copy file:///D:/tmp/myrepo/trunk file:///D:/tmp/myrepo/tags/v1 -m
"Redoing the tag v1, without deleting the tag before."

What we see:

In the tags/v1 subfolder a new folder is created by this command, named
‘trunk’ which contains a copy of the trunk. URL of new folder:
/tags/v1/trunk

If I issue the command once more, the command fails with E160020 (with
text Path file:///D:/....v1/trunk already exists)

Why does the svn copy command not fail at step 2?

Subversion 1.12.2 running here

Thank you for your time!

Best regards

Roger
Received on 2019-11-07 14:19:23 CET

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