Mercurial:列出特定变更集哈希的所有移植更改集

时间:2016-10-18 09:04:49

标签: mercurial

在具有多个分支的repo中,假设存在默认分支中的提交并移植到某些分支。有没有办法列出由于移植提交而创建的所有变更集?

1 个答案:

答案 0 :(得分:1)

根据通过执行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是修订号或变更集哈希值。

相关问题