git show-branch 等效于 Mercurial
git show-branch equivalent for Mercurial
Mercurial 中是否有 git show-branch --reflog="25" --list {branch-name}
的等效项? IE。一种显示对特定分支所做的所有提交的方式,无论它们是否已合并。
我想你需要:
hg log --branch <branchname>
有关详细信息,请参阅 hg help log
您可以使用其中之一
hg log -r0:: -b BRANCHNAME
hg log -r'branch(BRANCHNAME)'
hg log -r'reverse(branch(BRANCHNAME))'
第二种和第三种方法比较厉害
使用 -lN 将其限制为 N 个变更集
另请参阅 hg help revset how to create nice detailed expressions to limit and fine-tune your log output,例如所有未合并的分支头,如 hg log -r'branch(BRANCHNAME) and not merge() and head()'
Mercurial 中是否有 git show-branch --reflog="25" --list {branch-name}
的等效项? IE。一种显示对特定分支所做的所有提交的方式,无论它们是否已合并。
我想你需要:
hg log --branch <branchname>
有关详细信息,请参阅 hg help log
您可以使用其中之一
hg log -r0:: -b BRANCHNAME
hg log -r'branch(BRANCHNAME)'
hg log -r'reverse(branch(BRANCHNAME))'
第二种和第三种方法比较厉害
使用 -lN 将其限制为 N 个变更集
另请参阅 hg help revset how to create nice detailed expressions to limit and fine-tune your log output,例如所有未合并的分支头,如 hg log -r'branch(BRANCHNAME) and not merge() and head()'