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

Re: svn copy twice to same folder creates unexpeted subfolder in destination

From: Anders Munch <ajm_at_flonidan.dk>
Date: Thu, 7 Nov 2019 15:25:54 +0000

Branko Čibej [mailto:brane_at_apache.org] wrote:
> Because that's how 'svn copy' is supposed to work, and is also documented.
> It works the same way as a recursive copy on a filesystem on Unix:

The destination ambiguity always was a bug magnet. It's a problem as old as cp.

These days cp, or at least some versions of cp, has options --target-directory
and --no-target-directory to resolve the ambiguity.

I'm partial to the design where if the destination path ends in a slash then
it's a container to copy into, and if it doesn't then it's a copy-and-rename.
(Just sayin' - I know compatibility constraints make it almost impossible to
change.)

regards, Anders
Received on 2019-11-07 16:26:09 CET

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