Results 1 to 7 of 7

Thread: Do you use svn? How to restore files

  1. #1

    Default 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?

    Regards
    Alex

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Do you use svn? How to restore files

    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.

  3. #3

    Default Re: Do you use svn? How to restore files

    and what I have commited a delete file?

  4. #4
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Do you use svn? How to restore files

    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.

  5. #5

    Default Re: Do you use svn? How to restore files

    Quote Originally Posted by ken_yap View Post
    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 Can you explain me how to do that/

    Regards
    Alex

  6. #6
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Do you use svn? How to restore files

    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?

  7. #7
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Do you use svn? How to restore files

    Restore deleted items
    http://kdesvn.alwins-world.de/extras....html#id582412

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •