如何与TortoiseHG分支 - How to branch with TortoiseHG

问题:

I downloaded TortoiseHg 1.0 for evaluation. 我下载了TortoiseHg 1.0进行评估。 For the life of me I can't figure out how to make a branch. 对于我的生活,我无法弄清楚如何建立一个分支。 It seems to understand branches (eg 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. 这似乎是一种基本功能,因为DVC经常被吹捧的好处是轻量级分支。

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? 我用Google搜索并且找不到关于这个主题的讨论(至少对于最近的版本)所以我不得不假设我错过了什么,对吧?

Update: So I flagged Chad Birch's answer below to answer the "new branch" issue. 更新:所以我在下面标记了Chad Birch的回答来回答“新分支”问题。 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...". 您需要选择另一个分支的头部,右键单击,然后选择“与...合并”。


解决方案:

参考一: https://stackoom.com/question/Akj5
参考二: How to branch with TortoiseHG
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章