Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mercurial 一次回购中的龟甲和多个分支机构_Mercurial_Branch_Tortoisehg - Fatal编程技术网

Mercurial 一次回购中的龟甲和多个分支机构

Mercurial 一次回购中的龟甲和多个分支机构,mercurial,branch,tortoisehg,Mercurial,Branch,Tortoisehg,我真的搞不懂。我不熟悉Mercurial和Ortoisehg。读了很多文件,仍然找不到答案。我知道分支的一种方法是复制。这很清楚,但还有另一种方法叫做“命名分支”,但这是我不明白的一件事 例如,我有一个新的回购第一个分支被称为“默认”。然后我添加了3个分支,称为“test1…3”。现在,在repo浏览器中,我有如下树: * test3 | * test2 | * test1 | * default * test 1 | _______* test 2 | | ______* test 3

我真的搞不懂。我不熟悉Mercurial和Ortoisehg。读了很多文件,仍然找不到答案。我知道分支的一种方法是复制。这很清楚,但还有另一种方法叫做“命名分支”,但这是我不明白的一件事

例如,我有一个新的回购第一个分支被称为“默认”。然后我添加了3个分支,称为“test1…3”。现在,在repo浏览器中,我有如下树:

* test3
|
* test2
|
* test1
|
* default
* test 1 
|  _______* test 2
| | ______* test 3
| ||
|//
* default
如何实现这样的目标:

* test3
|
* test2
|
* test1
|
* default
* test 1 
|  _______* test 2
| | ______* test 3
| ||
|//
* default
如何在分支到“branch3”后切换回“default”。在添加一些内容并提交并切换回“branch3”之后,您应该

hg update -C default
在每个创造物之间


注意
-C
选项,它也会丢弃本地更改,因此在使用此命令之前要小心

如果您也特别需要OttoisehG中的建议,那么您必须打开repository explorer并为您感兴趣的分支机构负责人选择“更新”