我如何知道哪个分支是 Mercurial 中的最新分支?

发布于 2024-12-13 10:39:07 字数 79 浏览 4 评论 0原文

我想从 Mercurial 的最新分支结帐,但我不知道它是哪一个。如何在 Mercurial 中列出项目的所有分支,以及如何从最新的分支中签出?

I would like to checkout from the latest branch in mercurial, but I don't know which one it is. How do I list all the branches of a project in Mercurial, and how do I checkout from the latest one?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

转角预定愛 2024-12-20 10:39:07

标签 tip 始终分配给最新的变更集;无论您之前在哪个分支工作,hg update -r Tip 都会更新到此变更集。

hgtip 将显示有关提示的信息,包括分支名称。

The tag tip is always assigned to the most recent changeset; hg update -r tip will update to this changeset regardless of which branch you were working in before.

hg tip will show information about the tip, including the branch name.

情场扛把子 2024-12-20 10:39:07

Wooble 已回答您问题的第二部分。
至于第一部分...

如何在 Mercurial 中列出项目的所有分支

假设您指的是 命名分支,则为 hg 分支

如果您指的是 heads,则为 hg head

每个命令都有关于查看闭合分支等的各种选项。

Wooble has answered the 2nd part of your question.
As for the first part...

How do I list all the branches of a project in Mercurial

Assuming you mean named branches, then hg branches

If you mean heads then hg heads

Each of those commands has various options about seeing closed branches, etc.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文