当我尝试切换到工作区中项目的不同分支时,我使用“替换为”或“切换到另一个分支或版本”命令。大多数时候,它都能完成工作,但有时,切换是部分的,我最终会得到一个带有混合分支标签的困惑项目。这真的很烦人,因为我最终将东西检查到分支中。
还有人有同样的经历吗?你能提出一个解决方案吗?
谢谢。我正在使用 Eclipse Helios。
最佳答案
Eclipse documentation解释了“替换为”和“切换到另一个分支或版本”之间的区别。
Replace With > Another Branch or Version - replace the Workbench resource with a specific version or branch that you select in the repository. When you select this option, another window opens, so that you can browse through the branch and version tags in the repository and select the one that you want.
Team > Switch to Another Branch or Version - this update will replace Workbench resources with those on the tag specified in the Update dialog. The behavior differs from the above replace operations in that uncommitted modifications in the Workbench are not replaced but instead are "moved" to the resources from the selected tag. For more details on the specifics of this operation, see the CVS documentation at http://ximbiot.com/cvs/ relating to the use of the -r option with cvs update.
关于java - Eclipse 中的 CVS 替换和 "Switch to Another Branch or Version",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4732251/