一个回购中的TortoiseHg和多个分支 [英] TortoiseHg and multiple branches in one repo
问题描述
我真的不知道.我是Mercurial和TortoiseHg的新手.阅读了大量文档,但仍然找不到答案.我知道一种分支方式是制作副本.没关系,但是还有另一种称为命名分支"的方式,但这是我无法理解的一件事.
I really can't figure it out. I'm new to Mercurial and TortoiseHg. Read alot of docs and still cant find answer. I know that one way of branching is making a copy. Thats clear but there is another way called "named branches" but this is one thing i can't understand.
例如,我有新的回购协议的第一个分支称为默认".然后我添加了3个分支,称为"test1 ... 3".现在在回购浏览器中,我有这样的树:
For example i I have new repo first branch is called "default". Then i added 3 branches called "test1...3". Now in repo browser i have tree like this:
* test3
|
* test2
|
* test1
|
* default
如何实现这样的目标:
* test 1
| _______* test 2
| | ______* test 3
| ||
|//
* default
在分支到"branch3"后如何切换回默认".添加一些内容并提交并切换回"branch3"后?
How to after branching to "branch3" switch back to "default". After adding some things and commit and switch back to "branch3"?
推荐答案
如果您还特别需要TortoiseHG的建议-那么您必须打开资源库浏览器,并为要切换到的分支的头选择更新".
If you need an advice in TortoiseHG specifically too - then you have to open repository explorer and choose "update" for the head of branch you are interested to switch to.
这篇关于一个回购中的TortoiseHg和多个分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!