`

CVS Branch 和 Merge 在 Eclipse 中的使用

阅读更多
Branch:
我们在version Release_1_0建立一个branch,比如叫做“Release_1_0_Branch”, 这时CVS会同时建立一个regular tag “Root_of_Releas_1_0_Branch”,这个“Root_of_Releas_1_0_Branch” tag的用途是为了以后branch 合并到main trunk时提供一个参考点。

之后开发新版本的人员就基于main trunk工作,而fix bug的人员就基于Release_1_0_Branch工作。

一旦在Release_1_0_Branch上将Release_1_0的bug修复了,我们就可以将Release_1_0_Branch合并到main trunk中来,从而一次性remove the bugs。

Merge:
fixed bug之后,这时我们要把 Brank  merge main trunk 了。

1、选择 project -> Right click your project name, choose Replace With > Another Branch or Version from the context menu,
Then select the HEAD to replace with your current version in your workplace。
  
2、Select the project and choose Team > Merge.
在随后出现的对话框中,你首先选择regular tag ”Root_of_Releas_1_0_Branch”,然后在下一步中选择你的Branch“Release_1_0_Branch”。
在MyEclipse中end tag 选要merge的Branch,如果没有的话可以在
Configure Tag中选branch上的源代码添加

3、Synchronize view中的操作
在第二步结束后,Synchronize view中将显示“all the differences between the branch and your workspace version(that is the HEAD version)”,你必须在Synchronize view中通过菜单中提供的“Update, Override and Update, or Mark as Merged”手工决定合并到你工作区的change。

4、在所有期望的changes都被merge到你的工作区后,你就可以“commit”the changes to the repository了。


本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/sanshiqiduer/archive/2008/05/09/2423936.aspx
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics