use "svn delete --force" on unversioned copies, how to get my deleted files back
I'm using SVN 1.4.2 from command line. I created a new folder called test, and this is my folder structure:
.
|-- figures_index.aux
|-- figures_index.dvi
|-- figures_index.log
|-- figures_index.lyx
|-- figures_index.pdf
|-- figures_index.ps
|-- figures_index.tex
|-- main.lyx
|-- test
`-- thesisMain.tex开发者_如何学C
1 directory, 9 files
All files apart from the new created folder test are under version control. I used the following command
$ svn del --force thesis_latex/trunk/main/test
Is there anyway to get the test file back? The svn revert didn't work.
Try merging from the revision where files exist:
svn merge -rPREV:HEAD URL PATH
From your description the file was never in SVN. The SVN client deleted the file from the filesystem, it doesn't make a backup for you of unversioned files.
You need to look to your filesystem/backups for recovery of the file.
Windows - recycle bin might have it depends on how your client performed the deletion,
*nux - you'd be lucky to be using an FS with undo.
精彩评论