Is there any option in tortoise SVN to delete a revision
I have accidently deleted some file and commited. So I need to delete that revision. O开发者_如何学Pythontherwise whenever i update revision my files are deleting
Generally you cannot delete a revision in svn. You can only commit new revision restoring previous changes.
You need to merge old revision (where the file persists) into working copy and then commit it.
You can revert your working copy to a particular revision and then commit that. Remember that TortoiseSVN is nothing but a client. You can't do anything via the client that you can't do via a command line.
What's your scenario?
I just voted for @babak's solution but if it's really important for you and you have access to the repository, you could remove the specific revision using svnadmin dump and dumpfilter.
Technically you cannot delete a revision but there is a workaround which should achieve the same goal. You can commit a new revision which rewrites the previous one. There is an option in tortoise svn how to automatize this process. Its called reverse merging. It means you merge the branch with itself. I have successfully used this function. Following screenshots should guide you through this task.
Good advice: be aware that various 3rd party tools for 3-way merging are sometimes not reliable. They can get you code that can be compiled but fails at runtime. I prefer using default TortoiseMerge application for merging as you can see from following setting.
精彩评论