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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/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 如何切换到hg中的标记/分支?_Mercurial - Fatal编程技术网

Mercurial 如何切换到hg中的标记/分支?

Mercurial 如何切换到hg中的标记/分支?,mercurial,Mercurial,我按照文档中的说明进行操作 下载的FF源代码: hg clone http://hg.mozilla.org/mozilla-central/ src 如何切换到FF3.6“分支”或“标记”?文件说, hg clone http://hg.mozilla.org/releases/mozilla-1.9.2/ 192src 但我不想同时克隆FF main和FF3.6两次?一旦克隆了repo,您就拥有了一切:您可以hg-up-branchname或hg-up标记名来更新您的工作副本 UP:hg

我按照文档中的说明进行操作 下载的FF源代码:

hg clone http://hg.mozilla.org/mozilla-central/ src
如何切换到FF3.6“分支”或“标记”?文件说,

hg clone http://hg.mozilla.org/releases/mozilla-1.9.2/ 192src

但我不想同时克隆FF main和FF3.6两次?

一旦克隆了repo,您就拥有了一切:您可以
hg-up-branchname
hg-up标记名
来更新您的工作副本


UP:
hg-UP
hg-update
的快捷方式,它也有
hg-checkout
别名,适用于有
git
习惯的人。

crazyscot-是否需要克隆和签出?难道不可能在一个步骤(即,
hg克隆)中获取您想要的东西吗http://hg.nginx.org/nginx -r“1.4.4”
以签出项目的1.4.4版。
hg分行
仅列出
默认
,但回购有标签!要列出标记,请使用
hg tags
您可以使用hg clone-u在克隆后进行更新