I have inadvertently svn-deleted a file with svn del --targets del.txt
. Now, I'd like to recover that file with svn cat myPreciousFile.txt@4130 > myPreciousFile.txt
, but svn gives me a warning that myPreciousFile.txt is not under version control. A svn cat -r 4130 myPreciousFile.txt > myPreciousFile.txt
didn't work, either.
Can someone please tell me how I'd go about recovering this file again?
EDIT
Ok, I have tried it with svn merge
, but it still doesn't work. Here's what I did (file names altered to protect the guilty...):
f:\path\to\dev\dir> svn diff -r 4250:4251 --summarize
D file_one.tyb
D file_two.tyb
D myPreciousFile.txt
I interpret this output as "myPreciousFile was deleted in revision 4251".
So, I tried it with svn merge
:
f:\path\to\dev\dir> svn merge-c -4251 myPreciousFile.txt
And svn still warns me about myPreciousFile.txt not being under version control. (Same error message btw with svn merge-c -4250 myPreciousFile.txt
.