[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: Branko ─îibej <brane_at_xbc.nu>
Date: Thu, 08 May 2008 17:10:04 +0200

Mark Phippard 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 #

I'll answer with another question: what happens if, instead of "svn
revert foo", you say "svn commit foo"? :)

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:10:36 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.