如何在hg中切换到标签/分支? [英] How can I switch to a tag/branch in hg?

查看:718
本文介绍了如何在hg中切换到标签/分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循了 https://developer.mozilla.org/En/Developer_Guide中的文档/Source_Code/Mercurial 并通过以下方式下载了FF源:

I followed the documentation in https://developer.mozilla.org/En/Developer_Guide/Source_Code/Mercurial and downloaded FF source with:

hg clone http://hg.mozilla.org/mozilla-central/ src

如何切换到FF3.6分支"或标签"?文件说

How can I switch to the FF3.6 'branch' or 'tag'? The documentation said

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

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

but I don't want to clone both FF main and FF3.6 twice?

推荐答案

克隆存储库后,您便拥有了一切:您可以hg up branchnamehg up tagname来更新工作副本.

Once you have cloned the repo, you have everything: you can then hg up branchname or hg up tagname to update your working copy.

UP:hg uphg update的快捷方式,对于具有git习惯的人也具有hg checkout别名.

UP: hg up is a shortcut of hg update, which also has hg checkout alias for people with git habits.

这篇关于如何在hg中切换到标签/分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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