且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将项目更新为修订版与还原为修订版

更新时间:2022-04-19 22:53:44

更新到修订版 只会将您工作副本的文件更新到您选择的修订版.但是您无法继续进行此修订,因为 SVN 会抱怨您的工作副本过时.

Update to revision will only update files of your workingcopy to your choosen revision. But you cannot continue to work on this revision, as SVN will complain that your workingcopy is out of date.

恢复到此修订版 将撤消在选定修订版之后所做的工作副本中的所有更改(在您的示例中为 96,97,98,99,100)您的工作副本现在处于修改状态.

revert to this revision will undo all changes in your working copy which were made after the selected revision (in your example rev. 96,97,98,99,100) Your working copy is now in modified state.

两个场景的文件内容相同,但是在第一种情况下,您有一个未修改的工作副本,并且在第二种情况下您无法提交更改(因为您的工作副本未指向 HEAD rev 100)你有一个修改指向头部的工作副本,你可以继续工作和提交

The file content of both scenarions is same, however in first case you have an unmodified working copy and you cannot commit your changes(as your workingcopy is not pointing to HEAD rev 100) in second case you have a modified working copy pointing to head and you can continue to work and commit