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.

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.

TortoiseSVN(switch)

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…”.

SVNで特定のリビジョンに戻す方法(TortoiseSVN,Eclipse)

Enter the revision number you want to revert to and press OK.

SVNで特定のリビジョンに戻す方法(TortoiseSVN,Eclipse)

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”.

SVNで特定のリビジョンに戻す方法(TortoiseSVN,Eclipse)

Now when you run the svnversion command you will see that you are back to the latest revision.

TortoiseSVN(revert)

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”.

TortoiseSVN(revert)

The file will be the version you selected, and then re-commit it. This commits the specific revision as the latest revision.

Eclipse

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”.

SVNで特定のリビジョンに戻す方法(TortoiseSVN,Eclipse)

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.

コメント

Discover more from 株式会社CONFRAGE ITソリューション事業部

Subscribe now to keep reading and get access to the full archive.

Continue reading

Copied title and URL