Do you use svn? How to restore files

Hello guys.
I am an svn user (I am using kdesvn) and I have deleted some files. What can I do If I want to restore them back? I know that the svn server keeps all the files (even if are removed from the svn list)

Can you help me with that?


Just do an update of that file. By default you will get HEAD, but you can specify any previous version. That is if you have not deleted the metadata in the .svn directory. If you have, then you have to checkout the project again.

and what I have commited a delete file?

Get a previous revision of course. Committing an empty file is just a change like any other, just you have changed the whole file. Even rm’ed files can be recovered, they exist in previous revisions of the repo.

Great :slight_smile: Can you explain me how to do that/


I do it from the CLI, it’s just svn update -r<revision id> <filename>. I can’t say what kdesvn offers you. Maybe read the doco?

Restore deleted items

PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce 9600 GT | 4GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia ION | 3GB Ram