Mercurial:列出所有未合并的分支 [英] Mercurial: List all unmerged branches

查看:71
本文介绍了Mercurial:列出所有未合并的分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何列出所有未合并的分支?

How do I list all unmerged branches?

也就是说,我想要一个所有未关闭的分支的列表,并且它们的头部不会合并到其他分支中.

That is, I want a list of all branches that are not closed, and their head is not merged into some other branch.

推荐答案

您可以使用 branches命令

hg分支--active

hg branches --active

如果分支的最后提交尚未合并到另一个分支,则认为它们是活动的.封闭的分支根本不会出现在输出中.

Branches are considered active if their last commit has not been merged into another branch. Closed branches won't appear in the output at all.

如果您需要以编程方式处理列表,并且可以使用.NET,那么还有一个 Mercurial .NET 可以简化此过程的库.

If you need to handle the list programmatically, and can use .NET, there is also a Mercurial .NET library that can make this easy.

这篇关于Mercurial:列出所有未合并的分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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