java - Eclipse 中的 CVS 替换和 "Switch to Another Branch or Version"

标签 java eclipse cvs

当我尝试切换到工作区中项目的不同分支时,我使用“替换为”或“切换到另一个分支或版本”命令。大多数时候,它都能完成工作,但有时,切换是部分的,我最终会得到一个带有混合分支标签的困惑项目。这真的很烦人,因为我最终将东西检查到分支中。

还有人有同样的经历吗?你能提出一个解决方案吗?

谢谢。我正在使用 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/

相关文章:

android - Eclipse 是否适合 Android 开发?

android - 在 Eclipse 中没有获得内容助手/智能感知

linux - 简历导入 : cannot make path to/opt/cvs/test_proj: Permission denied

svn - 有没有办法在 SVN 中生成变更日志

java - 如何将数据库查询映射到对象 [在 Java 中]?

java - 是否可以删除 Android 自定义对话框的框架?

java - 我可以在 Spring 项目中将单独的 Xtend 文件与我的 Java 源文件混合在一起吗?

diff - 对 CVS 使用不同的 diff 命令?

具有离散值的 Java for 循环

java - 如何使用 Java Measurement API 更改单元上的标签?