[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: Mark Phippard <markphip_at_gmail.com>
Date: Thu, 8 May 2008 11:48:11 -0400

On Thu, May 8, 2008 at 11:37 AM, David Glasser <glasser_at_davidglasser.net> wrote:
>
> 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.

I do not really disagree. Having run into this I just thought I
should report it to gauge people's thoughts about how they think this
should work.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
---------------------------------------------------------------------
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:48:27 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.