[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: Mattias Rönnblom <hofors_at_lysator.liu.se>
Date: 2001-11-28 22:10:42 CET

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

Kind regards,

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.