CVS Branch 和 Merge 在 Eclipse 中的使用
http://blog.csdn.net/sanshiqiduer/article/details/2423936
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時提供一個參考點。 之后開發(fā)新版本的人員就基于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: fix 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. 在隨后出現(xiàn)的對話框中,你首先選擇regular tag ”Root_of_Releas_1_0_Branch”,然后在下一步中選擇你的Branch“Release_1_0_Branch”。 3、Synchronize view中的操作 在第二步結(jié)束后,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”手工決定合并到你工作區(qū)的change。
4、在所有期望的changes都被merge到你的工作區(qū)后,你就可以“commit”the changes to the repository了。
?
=============================
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Ftasks-100b.htm
?
Merging from a branch
After creating and working in a CVS branch for some time, you may want to merge your changes from the branch into another branch, or into HEAD. To do this, you will need to know:
To merge your changes:
Tip: If you don't know the start point of the merge, you can choose to perform the merge directly into the workspace. This relies on the CVS server to pick an appropriate start point. Because the merge is performed directly into the workspace, CVS may introduce a text based conflict markup into the file. This markup is typically hard to deal with so merging directly into the workspace should only be done when necessary.
Merge actions
The actions in the merge editor complement the manual merge toolbar actions that are available in the bottom half of the merge editor.
| Merge | Running this action will bring the changes into the file in the workspace. Any conflicts that are not auto-mergeable will be skipped. |
| Override and Update | This action is enabled on files with conflicting changes. Running this action will discard any local changes you have and replace the file with the remote contents. |
| Mark as Merged | This action will remove the selected changes from the view. The changes will only reappear if the remote state of the resource changes and the CVS Merge Synchronization is refreshed. |
Tip: You can perform ongoing merges by pinning a CVS Merge Synchronization in the Synchronize view. This will allow you to keep your workspace up-to-date with the changes released to a different branch.
?
總結(jié)
以上是生活随笔為你收集整理的CVS Branch 和 Merge 在 Eclipse 中的使用的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 用xfire开发webservice实例
- 下一篇: Eclipse中如何恢复已删除文件