抑制 hg 视图中的闭合分支

发布于 2024-09-29 17:20:49 字数 340 浏览 3 评论 0原文

运行 hg view 命令时,有没有办法防止关闭的分支显示在顶部?我知道“限制”选项。我真的不需要关闭的分支从视图中完全消失,但如果它们保持在下方(它们很久以前就关闭了),而不是每次执行合并时都在顶部附近弹出,那就太好了。

hg view with a closebranch close currentdevelopment

这是发生这种情况的示例屏幕截图。您可以在右侧看到时间都混合在一起,在本例中这并不算太糟糕,但在我的真实存储库中,每次合并时,关闭的分支都会在顶部附近弹出,当关闭的分支已经是一年多前的事了,确实没什么意思。

Is there a way to prevent closed branches from showing up at the top when running the hg view command? I know about the 'limit' option. I don't really need closed branches to completely disappear from the view, but it would be nice if they would stay down (they were closed long ago), rather than popping up near the top every time I perform a merge.

hg view with a closed branch near current development

Here is an example screenshot where this happens. You can see on the right that the times are all mixed up, which isn't too terrible in this case, but in my real repo the closed-off branches pop up near the top everytime I have a merge, which gets annoying when the closed-off branch is well over a year ago and truly not interesting.

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

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

发布评论

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

评论(2

握住我的手 2024-10-06 17:20:49

没有人更新 hg view 以了解关闭的分支。如今,该扩展大部分已被放弃,因为没有核心开发人员使用它或知道如何在 Tcl/Tk 中进行编程。我们谈论在每个主要版本中删除 hgk...

您最好的选择是升级到 TortoiseHg 并使用命令 hgtk log 查看存储库。

最好的一点是它可以在 Windows Linux 上运行 - 请参阅 hgtk 维基页面。在 hgtk 中,您可以使用新的修订集进行过滤 语法。此修订集查询将找到打开的变更集:

ancestors(head() and not closed())

Nobody has updated hg view to be aware of closed branches. The extension is mostly abandoned these days since none of the core developers use it or know how to program in Tcl/Tk. We talk about removing hgk at every major release...

Your best bet is to upgrade to TortoiseHg and use the command hgtk log to view the repository.

The best thing is that it works on both Windows and Linux -- see the hgtk wiki page. In hgtk you can filter using the new revision sets syntax. This revset query will find open changesets:

ancestors(head() and not closed())
-小熊_ 2024-10-06 17:20:49

该程序 hgview 不会在顶部显示死分支,并且可以在 Ubuntu 存储库中使用。

The program hgview doesn't show the dead branches at the top and is available in Ubuntu repositories.

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