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

Re: Subversion != your filesystem (was mv != (cp && rm))

From: Branko ╚ibej <brane_at_xbc.nu>
Date: 2001-11-28 22:52:37 CET

Mattias R´┐Żnnblom wrote:

>"B. W. Fitzpatrick" <fitz@red-bean.com> writes:
>
>>>Regardless of how the backend is implemented, the frontend should have an
>>>atomic "mv".
>>>
>>>>From the info pages for ``mv'':
>>
>> ...It first uses some of the same code that's used by `cp -a'
>> to copy the requested directories and files, then (assuming the copy
>> succeeded) it removes the originals. If the copy fails, then the part
>> that was copied to the destination partition is removed. If you were
>> to copy three directories from one partition to another and the copy of
>> the first directory succeeded, but the second didn't, the first would
>> be left on the destination partion and the second and third would be
>> left on the original partition.
>>
>>So it's basically cp && rm with a failsafe mode.
>>
>
>That part of the info page only applies to moving _between filesystems_.
>In Subversion, that would correspond to moving between reprositories.
>And in that special case, you could argue that mv == cp && rm. I
>would rather forbid that operation.
>
Copies (and moves, and links) between repositories would actually be
very useful.

-- 
Brane ´┐Żibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:49 2006

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