首页 Soft PlugIn RAN乱 Dev开发 Info资料 English WAP 留言 登陆 注册
-
Posted by Yippee | 评论(0) | 引用(0) | 阅读2825次
TortoiseCVS中文帮助-合并分支

Merging from a Branch合并分支www.shengfang.org
When you are satisfied with the changes you have done on a branch, you may want those changes to be available on the head branch of development. Incorporating changes from one branch to another, is known as merging. 如果你觉得在一个分支上的修改觉得满意,你会想把这些修改合并到主开发分支上去。从一个分支合并到另外一个分支称之为合并。www.shengfang.org

To merge from a branch, move your local copy to the branch you want to merge the changes into. See Selecting a Branch to Work On or Going Back to the Head Branch. Select the top level folder of the project. You can also select the exact folders and files that are part of the desired branch if you know this information. Right-click the on the selection, and choose CVS → Merge.... 从一个分支合并,移动你的本地拷贝到你想最终合并的分支上去,参考 选择一个工作分支或者回到主分支。选择项目的的顶层目录,如果你能够确认得话,你也可以选择准确的文件和目录,分支的一部分而不是全部。右键 点击,选择 CVS-合并 Figure 3.6. Merge Dialog 合并对话框www.shengfang.org
You will then be presented with the Merge Dialog. Here you can enter the branch name in the Branch to merge from field you wish to merge. Click the OK button, and TortoiseCVS will now merged the branch specified into your local copy. Your changes will not be made on the server repository, until you commit your changes. 合并对话框将弹出,输入分支名称于 从何合并文本框(你想要合并得),点击确定,TCVS将合并该分支到你的本地拷贝中。你的修改不会在仓库生效,需要你进行提交操作。www.shengfang.org

The merge given above will try to merge changes from the start of the branch. If you do the operation a second time (to merge changes done to the branch after the last merge), merging from the start of the branch is not what you want, and it will most likely get you into trouble. To get around this problem, you should give the branch a new tag after every merge, and use the new tag when naming the branch for subsequent merges. 上述合并将从最开始的分支开始合并,如果你第二次进行合并(从最后合并后的分支再合并修改),你不希望从开始分支开始合并,这将带给你麻烦。处理这个问题,你应该在每次合并后给分支打上一个标签,使用新的标签命名后来修改的分支。www.shengfang.org

Note: The above paragraph only applies for standard Unix CVS (aka cvshome.org CVS). If your server runs CVSNT, you can take advantage of a special feature known as merge points. This means that CVS keeps track of your last merge, so that you can effortlessly merge from the same branch repeatedly. For more information on this feature, see the CVSNT Wiki page (note that the CVSNT Manual is not yet up to date on this point). 注意:以上段落仅仅应用于UNIX CVS(CVSHOME.ORG cvs),如果你的服务器端运行CVSNT,你可以利用它的特点作为合并点。这意味着CVS保留你最后一次合并的踪迹,因此你可以从同一个分支进行多次合并。获得更多信息:参考CVSNT的WIKI页面。注意最近的CVSNT手册还没有注明这点。www.shengfang.org

Going Back to the Head Branch回到主分支
If you want to stop working on a branch and move your local copy back to the main line of development, you have to make TortoiseCVS remove all sticky tags. 如果你不想再在分支上工作而是把你的本地拷贝回到主开发线上,www.shengfang.org你必须让TCVS清楚所有粘性附着标签。

To remove the sticky tags, and thus update your local copy to the main development line, select the top level folder of the project. You can also select the exact folders and files that are part of the desired branch if you know this information. Right-click the on the selection, and choose CVS → Update Special.... 移除附着标签,www.shengfang.org从而让你的本地拷贝回到主开发线。选择顶层目录或者需要的文件,右键,CVS-更新到指定版本。

You will then be presented with the Update Special Dialog. Select the Return to main (HEAD) branch checkbox and click the OK button. TortoiseCVS will now do the necessary updates to move your working copy back to the head branch.www.shengfang.org 对话框弹出,选择 回到主分支 选择框,点击OK,TCVS将进行必要的更新让你的工作回到主分支


字体:

Permanant URI永久地址 http://www.shengfang.org/blog/p/tcvshlpmergbranch.php
Trackback URI引用地址 http://www.shengfang.org/blog/tb.php?tb_id=1120828134

2005年7月8日21:08星期五  [English] 追踪此文的RSS
提示:
此文还没有评论。

称呼:    登陆   注册
   不注册,但记住我的信息
邮件:
(非必须)
评论: [UBB代码帮助]
粗体 斜体 下划线 链接 水平线 引用



验证码: 请输入你看见的数字
关闭UBB      提交时自动将内容复制到剪贴板

公告
Fire and Motion!

统计信息
[Yippee]||[统计]||日志:1839
在线: 16||用户: 2576 [列表]
今日:2231||到访:2854085
Rss:885223||评论:1604

最新日志

最新评论

友情链接

日历

最新引用

搜索

归档

杂项
Get RSS Feed (Version 2.0)
Get Atom Feed (Version 0.3)
编码:  UTF-8