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

Re: lose unversioned data with revert

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Wed, 29 Feb 2012 13:55:49 +0000

Neels J Hofmeyr <neels_at_elego.de> writes:

> Found this but haven't got the time to dive into right now.
> An unversioned file should never be killed, right?
> Should I create an issue?
> [[[
> svn mkdir -mm ^/x
> echo important data > x
> svn st
> svn up
> svn st
> svn revert x
> svn st
> # empty status
> ls -l
> # x is now a dir, and "important data" is gone.
> ]]]

You are explicitly reverting x, are you saying revert should fail? My
first instinct is that revert is doing the right thing. What about

svn rm x # delete a versioned dir
echo data > x # add an unversioned file
svn revert x # directory restored

Do you think revert should fail here as well?

uberSVN: Apache Subversion Made Easy
Received on 2012-02-29 14:56:26 CET

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