Mercurial:列出特定变更集哈希的所有移植变更集
Mercurial: List all transplanted change sets for a particular changeset hash
在一个有多个分支的仓库中,假设有一个在默认分支中的提交并被移植到一些分支。有没有办法列出由于该提交的移植而创建的所有变更集?
根据文档,通过执行hg help revsets
我们可以看到:
"destination([set])"
Changesets that were created by a graft, transplant or rebase operation,
with the given revisions specified as the source. Omitting the optional
set is the same as passing all().
因此,假设您有一个通过其本地修订号或哈希已知的变更集,您可以执行此命令以查看移植目标:
hg log -r "destinations(CHANGESET)"
其中 CHANGESET
是修订号或变更集散列。
在一个有多个分支的仓库中,假设有一个在默认分支中的提交并被移植到一些分支。有没有办法列出由于该提交的移植而创建的所有变更集?
根据文档,通过执行hg help revsets
我们可以看到:
"destination([set])"
Changesets that were created by a graft, transplant or rebase operation,
with the given revisions specified as the source. Omitting the optional
set is the same as passing all().
因此,假设您有一个通过其本地修订号或哈希已知的变更集,您可以执行此命令以查看移植目标:
hg log -r "destinations(CHANGESET)"
其中 CHANGESET
是修订号或变更集散列。