Deleted files are 'restored' when doing an update with TortoiseSVN

If I delete a file from my working copy, then do an Update, the deleted file is restored.

This is quite annoying, because I then have to go find the file and delete it again.

  • Git and SVN on Windows
  • How can only the files that were modified in a range of SVN revisions be checked out?
  • All-in-1 decentralized project management git+tickets+wiki
  • How to upgrade SVN server from 1.6 to 1.7
  • .NET projects build automation with NAnt/MSBuild + SVN
  • Grails - No SCM provider installed
  • I’m not sure why SVN does this. If I want to do an Update, it means I want to pull down any changes from the respository. It doesn’t mean I want to restore files that I have deleted.

    Is there a workaround?

  • Using Tortoise SVN, how can I download the latest version of the source code of my CodePlex application?
  • Oddly formatted SVN repo to Git
  • Is there a a way that a Git server will support svn clients requests
  • Move last n commits from svn to git repo
  • Why people name a directory “vendor” which contains all programs that are made by others?
  • Is this workflow possible with git-svn?
  • 2 Solutions collect form web for “Deleted files are 'restored' when doing an update with TortoiseSVN”

    If you want to delete the file from SVN, you need to do an SVN delete, not just delete the file locally. SVN delete is in the TortoiseSVN context submenu.

    To mitigate after the problem occurs, i do this:

    1. Select all the rows in tortoise svn window that were ‘Restored’,
      and copy
    2. Paste in second column of a new excel sheet
    3. in first column, type: del ”
    4. fill the column with del ” next to the restored files’ paths, by double clicking bottom right corner of the first cell in which you typed del ”
    5. fill after each path with a closing ”
    6. Win+R (Start -> Run) notepad -> Enter. Copy all and paste into notepad. Select and copy one tab, Ctrl + H, replace all, replaces tabs with nothing to remove tabs
    7. Win+R cmd -> Enter , right click and paste the delete commands in command line, press enter and the files get deleted

    I know these are a long list of instructions, but I believe they should be second nature to developers, and are necessary to know and go about quickly, for multiple purposes beyond this one, using excel this way, creating and running batch commands quickly, etc…

    Git Baby is a git and github fan, let's start git clone.