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

Re: Is this a bug or a feature?

From: Les Mikesell <lesmikesell_at_gmail.com>
Date: Tue, 14 Jul 2009 07:35:49 -0500

Andrey Repin wrote:
> Greetings, Stefan Sperling!
>
>>> I guess I'm still a bit lost. I'm puzzled as to why subversion copies
>>> the new data into a child directory of the target rather than throwing
>>> an error out or overwriting. I'm not sure what the purpose of that
>>> feature would be.
>
>> It's consistent with the way UNIX cp works.
>
> It's consistent with the way ANY filesystem "copy" command works.
> In the end, Subversion is a file system.
>

Yes, but cp (at least the GNU version) gives you options to control whether a
new target directory is created or not. And in the filesystem case you can
always cd into the source directory and use '.' as the source to avoid
confusion. Rsync probably has the handiest syntax, using a trailing / to
control what happens to the target.

-- 
   Les Mikesell
     lesmikesell_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2371223
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-14 14:37:21 CEST

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.