如何配置 Apache SVN webDAV 目录列表
我有一个使用 Apache mod_dav_svn
运行的 Subversion 服务器,它运行良好,但通过 HTML 的浏览能力有点简陋。有没有办法定制它?
我想做两件事来产生巨大的影响:
将文件中的目录,因此所有目录都位于顶部。现在一切都按字母顺序排列。 (上图碰巧按字母顺序排列了文件前面的所有目录,但相信我,这不是正常情况)
列出基本文件统计信息(文件大小、修改时间、上次更新版本等)
是否可以使用 mod_dav_svn
执行这些操作?
I have an subversion server running with Apache mod_dav_svn
and it works nicely but the browsing ability via HTML is a bit spartan. Is there a way to customize it at all?
There's two things I'd like to do to make a huge difference:
separate the directories from the files so all the directories are at the top. Right now everything is in alphabetical order. (the picture above happens to have all the directories preceding files in alphabetical order, but trust me, that's not the normal case)
List the basic file statistics (file size, mod time, last updated version, etc)
Is it posssible to do either of these with mod_dav_svn
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在普通 Subversion 安装中,Web 界面的设计非常简洁。 (请记住,HTTP 接口是为 SVN 客户端而不是人类设计的。)
您可以通过 SVNIndexXSLT 指令。 (这里是一个好的起点)。
如果您想要更丰富的东西(带有日志和差异功能),您将需要安装一个特殊的前端。 WebSVN 和 ViewVC 非常受欢迎。还有 Trac,但这是一个更高级别的工具。
其他存储库浏览工具的列表。
仅供参考,我们使用 WebSVN 作为存储库实例。启动并运行它需要付出一些努力,但一旦设置完毕,您几乎就可以不用管它了。
In a vanilla Subversion install, the web interface is very spartan by design. (Remember the HTTP interface is designed for SVN clients, not human beings.)
You can customize the display somewhat via the SVNIndexXSLT directive. (Here is a good place to start).
If you want something richer (with logs and diff features), you will need to install a special front end. WebSVN and ViewVC are very popular. There is also Trac, but this is a higher-level tool.
A list of other repo browsing tools.
Just FYI, we use WebSVN for our repo instance. It took some effort to get it up and running, but once it is setup you can pretty much leave it alone.
WebSvn 看起来可能对您有帮助。我尝试了 trac,它非常光滑,但我发现它很复杂,并且对于您正在寻找的东西来说似乎有点过分了,我认为。
WebSvn looks like it might help you. I tried trac and it is very slick but I found it to be complicated and seems overkill for what you're looking for, imo.
不是开箱即用——即不修改源代码。您可能对 ViewSVN 或更复杂的 trac 或 redmine。
Not out of the box - that is, without modifying the source code. You might be interested in tools like ViewSVN or the more sophisticated trac or redmine.