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.
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?
If you want more control over the update process, you should use TortoiseSVN → Update to Revision... instead. This allows you to update your working copy to a specific revision, not only to the most recent one.
In the Repository Browser, click the button labeled HEAD (at the top-right corner) to show to a revision there your folder still exists, then right-click that folder and select "Copy to..." and enter the path there you want the folder to be re-created (probably the same path that is already in the text box).
How do I uninstall TortoiseSVN? Simply uninstall from Add/Remove Programs in the Windows control panel. This does not affect your repositories or working copies at all.
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:
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...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With