How to revert to a specific revision in SVN (TortoiseSVN,Eclipse) TortoiseSVN(switch) To revert to a specific revision in SVN, right click on the file you want to revert to and select “TortoiseSVN” – “Show Log” to show the log.
Select the revision you want to revert to, right click and select “Revert to this revision”.
You will see “Revert changes”, select it.
Now that you’ve reverted the file to the state of that particular revision, you can commit it.
If you want to revert a revision under a directory to a specific revision number you can use svn switch.
Right click on the folder you want to revert to a specific revision and select “Switch…” Switch…”.
Enter the revision number you want to revert to and press OK.
Now when you run the svnversion command, the revision number is 8.
C:\svn>svnversion 8 C:\svn>
Conversely, if you want to revert to the latest revision, check “HEAD revision” and press “OK”.
Now when you run the svnversion command you will see that you are back to the latest revision.
TortoiseSVN(revert) Since accidents often happen when you do a switch, there is a way to revert to a specific revision number and then re-commit.
Right click on the file you want to revert to, select the version you want to revert to, right click and click “Revert to this version”.
The file will be the version you selected, and then re-commit it. This commits the specific revision as the latest revision.
To revert to a specific revision in Eclipse Eclipse, right-click on the source you want to revert to and select “Team” – “Update to Revision”.
Click “Browse” and a screen will appear to select a previous revision. Select one of the revisions. Here we selected 12178.
If you click “OK” as it is, Eclipse will revert the revision to the specific revision.