使用“gitweb”;样式显示所有分支。我可以只显示所需数量的分支吗?

发布于 2024-08-08 21:28:46 字数 241 浏览 5 评论 0原文

当在页面上使用 hgweb 的“gitweb”样式时,我可以看到大量的分支,例如,如果我有 1000 个分支 - 全部都会显示。

我尝试设置:

[默认值] 全局 hgrc 文件中的Branches = -a

但它不会影响 Web 视图。我的猜测是它与“gitweb”样式模板的文件有关。

有没有简单的方法可以限制 Web 视图中显示的分支数量?

水银1.0.1-5.1~bpo40+1

When Using 'gitweb' style for hgweb on a page I can see planty of branches, for example if I have 1000 of them - all are shown.

I tried setting:

[defaults]
branches = -a

in global hgrc file but it doesn't effect the web view. My guess is it is related to 'gitweb' style template's files.

Is there any easy way of limitating the number of branches shown in a web view?

mercurial 1.0.1-5.1~bpo40+1

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

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

发布评论

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

评论(1

阪姬 2024-08-15 21:28:46

没有简单的方法可以做到这一点。我什至不确定当前使用的网络模板语言是否允许这样做。

模板文件可以在此处。

There is no easy way to do it. I'm not even sure the web templating language currently used can allow it.

The template file can be found here.

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