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

lose unversioned data with revert

From: Neels J Hofmeyr <neels_at_elego.de>
Date: Wed, 29 Feb 2012 14:33:47 +0100

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

my output:
[[[
+ svn mkdir -mm '^/x'

Committed revision 1.
+ echo important data
+ svn st
? x
+ svn up
Updating '.':
   C x
At revision 1.
Summary of conflicts:
  Tree conflicts: 1
+ svn st
D C x
> local unversioned, incoming add upon update
Summary of conflicts:
  Tree conflicts: 1
+ svn revert x
Reverted 'x'
+ svn st
+ ls -l
total 4
drwxr-xr-x 2 neels neels 4096 2012-02-29 14:30 x
]]]

~Neels

Received on 2012-02-29 14:34:25 CET

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.