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?
Subversion is used for maintaining current and historical versions of projects. Subversion is an open source centralized version control system. It's licensed under Apache. It's also referred to as a software version and revisioning control system.
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.
You can use an xslt
to configure the output. I.e see http://www.reposstyle.com
If you are after a different way of viewing your subversion repository via a web interface, I'd suggest looking into Trac (http://trac.edgewall.com). You can even view Trac's own Subversion repository at http://trac.edgewall.org/browser.
I'm not sure if it's possible to skin the Subversion browser itself without digging into the Trac code, but the overall Trac look and feel can certainly be modified, as was done by the Maia Mailguard project at http://maiamailguard.com/maia/browser.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With