TortoiseHg RevSet 查询以查看分支谱系

发布于 2025-01-03 07:23:24 字数 149 浏览 0 评论 0 原文

在TortoiseHg中是否可以编写一个revset查询来仅显示分支中涉及的变更集?更具体地说,我想查看每个分支的第一个修订版、它的直接父级以及每个分支的当前负责人。

我的目标是查看我们的存储库中发生的所有分支活动的简明图片,而无需所有中间签入。

谢谢

In TortoiseHg is it possible to write a revset query that would show only the changesets involved in branching? More specifically I'd like to see the the first revision of every branch, it's direct parent, and the current head of each branch.

My goal here is to see a concise picture of all the branching activity that's happening in our repo without all the intermediate check-ins.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

萌吟 2025-01-10 07:23:24

是否可以编写一个仅显示分支中涉及的变更集的修订集查询?

是的

(我使用我的 Assembla repo 和单个命名分支作为示例和检查点在以下示例中)

  1. 每个分支的第一个修订版

hg log -r "branch(Cleanup)" -l 1hg log -r "min(branch(Cleanup))"hg log -r "first(branch(Cleanup))"

changeset:   58:f7f288c9e72b
branch:      Cleanup
parent:      55:acadd1e83fba
  1. 它是直接父

hg log -r "parents(min(branch) (Cleanup)))"hg log -r "p1(min(branch(Cleanup)))"hg log -r "min(branch(Cleanup))^"

changeset:   55:acadd1e83fba
  1. 每个分支的当前头

hg Heads Cleanuphg log -r "head() and (branch(Cleanup))" hg log -r "heads(branch(Cleanup))"

changeset:   67:67608168d4b3
branch:      Cleanup
tag:         tip

is it possible to write a revset query that would show only the changesets involved in branching?

Yes

(I use my Assembla repo with single named branch as example and check-point for you in the following examples)

  1. the first revision of every branch

hg log -r "branch(Cleanup)" -l 1 or hg log -r "min(branch(Cleanup))" or hg log -r "first(branch(Cleanup))"

changeset:   58:f7f288c9e72b
branch:      Cleanup
parent:      55:acadd1e83fba
  1. it's direct parent

hg log -r "parents(min(branch(Cleanup)))" or hg log -r "p1(min(branch(Cleanup)))" or hg log -r "min(branch(Cleanup))^"

changeset:   55:acadd1e83fba
  1. the current head of each branch

hg heads Cleanup or hg log -r "head() and (branch(Cleanup))" or hg log -r "heads(branch(Cleanup))"

changeset:   67:67608168d4b3
branch:      Cleanup
tag:         tip
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文