使用“gitweb”;样式显示所有分支。我可以只显示所需数量的分支吗?
当在页面上使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有简单的方法可以做到这一点。我什至不确定当前使用的网络模板语言是否允许这样做。
模板文件可以在此处。
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.