I have a subversion server, providing subversion access via Apache2 and mod_dav_svn
The system works fine and clients can access the repositories with SVN client such as TortoiseSVN etc.
Users can also access HTML renderings of the same URLs.
Can these renderings be over-ridden, or replaced? If so, how would i go about it?
You can by adding a SVNIndexXSLT
directive in the <Location>
of your repository in the httpd.conf
:
<Location: /repository>
DAV svn
SVNPath /var/repository
SVNIndexXSLT "/svnstyle.xsl"
[...]
</Location>
With this directive, Subversion will generate an xml directory listing, instead of an html one, and you can style this xml listing any way you want in the specified xslt file.
Remember that the path you specify in the SVNIndexXSLT
directive is an url of your webserver, the browser must have access to it to render the pages correctly.