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

Re: Revert scheduled delete -- possible dataloss?

From: David Glasser <glasser_at_davidglasser.net>
Date: Thu, 8 May 2008 16:37:44 +0100

On Thu, May 8, 2008 at 4:06 PM, Mark Phippard <markphip_at_gmail.com> wrote:
> Does anyone consider this a dataloss bug?
>
> $ cat foo
> Original file
> $ svn rm foo
> D foo
> $ echo New file > foo
> $ svn revert foo
> Reverted 'foo'
> $ cat foo
> Original file
>
> Basically, I deleted a file, out a new copy of the file in place, and
> then reverted the delete. The new file was just removed and the
> pristine file put back.
>
> I expected one of the following to happen:
>
> 1) Remove the schedule delete. svn st would now show the file as
> modified. A second revert would get back the pristine file.
> 2) Fail because of an obstruction and require --force. In which case,
> I would get behavior #1

Eh. "svn revert" is exactly when you'd expect data loss to happen.
This seems reasonable to me.

--dave

-- 
David Glasser | glasser@davidglasser.net | http://www.davidglasser.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-05-08 17:38:00 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.