tortoisesvn - What is the correct way to restore a deleted file from SVN? -


I deleted a file from repo and now want to return it.

  • Copy the files elsewhere
  • Update the head
  • less
  • Committed
  • It just smells and it loses all the history to boot, there should be a better way of doing this. I have already seen but nothing has been found and now I am looking at the SVN tag list.

    Use SVN merge:

      svn merge -c - [Rev num which has been deleted] http: //  

    Then an example:

      svn merge-c-12345 https://svn.mysite.com/svn/repo/project/trunk ^ negative Important  

    For TortoiseSVN (I think ...)

    • Right click on Explorer, go to TortoiseSVN -> Merge ...
    • Ensure that "Match the range of revisions" has been selected, click Next
    • In the "Modification to merge category" box in the text box, delete that file Specify the revision
    • Check A. "Reverse merge" checkbox, click Next
    • Click Merge

    This is not unexpected totally, though.


    Edit by OP : This works for TortoiseSVN (old way without next button) for my version

    • Modify
    • Go to the folder that was lost from the bag
    • to in the section < Strong>
    • Enter the amendment before deletion in the section.
    • Click on "merge"
    • less

    move the back to the right direction To mark me sean.bright success!


    Edit: We are using different versions. The method that I have described works with Turtle SSVN completely with its version.

    Apart from the note it is also that if you are making many changes, then you are merging the reverse, after the merge, you will want to return those other changes before you are committed if you do If not, those additional changes will also be reversed.


    Comments