What is the best way to roll-back a change set using Subversion?

前端 未结 8 1151
遥遥无期
遥遥无期 2021-02-07 10:13

I\'ve been using various source control systems for a while, but when it comes to reverting changes I\'m not yet an expert. Can someone help given this scenario:

Scenar

8条回答
  •  礼貌的吻别
    2021-02-07 10:51

    I assume you are using TortoiseSVN in my answer.

    I don't think your scenario will lead to a roll-back of the files, because you still want to preserve the history of each file. Most of the time, what you are going to do is just find and fix the bug and commit a new change to this file.

    If you want to compare two revision, it's pretty easy in tortoiseSvn, right click on the file, then go in TortoiseSvn->Show Log. Then select both the revision you want to compare, right click and then Compare Revisions.

    If you want to find who is responsible for the bug, you can use the menu item Blame in TortoiseSVN... This will let you know who modified each line and at which revision.

    Oh and if you want to revert a file back to a previous version, you can do so in TortoiseSvn->Show Log an then you select the revision you want to revert to, right click and select Revert to this revision.

提交回复
热议问题