【发布时间】:2021-03-02 20:38:00
【问题描述】:
要根据thisStackOverflow 获取 Git 中包含特定修订的所有分支的列表,可以使用以下命令:
git branch --contains <commit>
如何使用 Mercurial 完成这项工作?
我还希望输出尽可能干净。例如hg branches 也返回分支中的最后一个修订:
new-branch 2:657883530997
default 1:6c8931261776 (inactive)
但最好只返回分支的名称,每个分支都在一个新行上,以便于机器处理。
【问题讨论】:
标签: git command-line version-control mercurial