Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deleting revisions using TortoiseSVN

Tags:

I committed some bad code changes to my SVN sever using TortoiseSVN.

Now the head revision is 155, but I would like to delete the last 2 revisions so that the head revision is 153. In other words, I would like to "undo" my last two commits.

How can I do this using TortoiseSVN? Does an option exist in the TortoiseSVN menu, or do I need to use the command line?

like image 748
user974967 Avatar asked Dec 05 '12 00:12

user974967


People also ask

How do I revert in TortoiseSVN?

If you want to undo all changes you made in a file since the last update you need to select the file, right click to pop up the context menu and then select the command TortoiseSVN → Revert A dialog will pop up showing you the files that you've changed and can revert. Select those you want to revert and click on OK.

How do I delete a revision in svn?

Right-Click the revision you want to remove NOTE: this is the revision you want to remove, not the one you want to revert to. Select "Revert changes from this revision". Click "Yes" at the prompt. Update the checkout as normal, but to "HEAD".

How do I delete a repository on TortoiseSVN?

Right click the any folder and choose TortoiseSVN -> Repo Browser. Then point to your local repository in the URL field. Once open you could be able to browse the repo, and with a right click, delete the folder.

How do I revert a revision in svn repository?

Right click on the selected revision(s), then select Context Menu → Revert changes from this revision. Or if you want to make an earlier revision the new HEAD revision, right click on the selected revision, then select Context Menu → Revert to this revision.


1 Answers

If you open the SVN Log, you can then right-click on a revision and use the options Revert to this revision or Revert changes from this revision. Both of these options will update your working copy (which you can then commit).

There are no options within TortoiseSVN to delete revisions.

like image 191
Luke Z Avatar answered Oct 01 '22 10:10

Luke Z