如何与TortoiseHG分支 [英] How to branch with TortoiseHG

查看:204
本文介绍了如何与TortoiseHG分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了TortoiseHg 1.0进行评估.对于我的一生,我不知道该如何做一个分支.它似乎了解分支(例如,在其存储库浏览器中),但是我似乎找不到找到分支的方法.这似乎是一项基本功能,因为DVC经常被吹捧的好处是轻量级分支.

I downloaded TortoiseHg 1.0 for evaluation. For the life of me I can't figure out how to make a branch. It seems to understand branches (e.g. in its repository browser) but I just can't seem to find a way to make a branch. This seems like such a fundamental capability since out of the often touted benefits of DVC is the lightweight branching.

我在Google周围搜索,找不到太多关于该主题的讨论(至少对于最新版本而言),所以我必须假设我缺少一些东西,对吧?

I Googled around and couldn't find much discussion of this topic (at least for recent versions) so I have to assume I'm missing something, right?

更新:所以我在下面标记了乍得·伯奇的答案,以回答新分支"问题.正如他正确指出的那样,您进行提交,然后单击分支按钮以打开分支维护对话框,您可以在其中创建新分支.我希望他们为此提供了一个上下文菜单选项.分支之后,下一个自然的问题是如何合并,这也不是显而易见的.事实证明,该选项已埋在资源库浏览器中.您需要选择另一个分支的头,右键单击,然后选择与...合并".

Update: So I flagged Chad Birch's answer below to answer the "new branch" issue. As he correctly points out, you do a commit and then click on the branch button to bring up the branch maintenance dialog which is where you create new branches. I kind of wish they had given us a context menu option for this. Once you've branched, the next natural question is how to merge and this is also not obvious. It turns out that option is buried in the repository explorer. You need to select the head of another branch, right-click and then select "Merge with...".

推荐答案

文档,您只需要单击提交对话框顶部附近的 branch:default 按钮,然后更改为新的分支名称即可.

As shown in the docs, all you should need to do is just click on the branch: default button near the top of the commit dialog, and change to a new branch name.

这篇关于如何与TortoiseHG分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆