Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to override the Subversion HTML pages?

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?

like image 780
BParker Avatar asked Dec 04 '09 23:12

BParker


People also ask

What is SVN access?

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.


3 Answers

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.

like image 103
Davide Gualano Avatar answered Oct 28 '22 16:10

Davide Gualano


You can use an xslt to configure the output. I.e see http://www.reposstyle.com

like image 32
epatel Avatar answered Oct 28 '22 15:10

epatel


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.

like image 25
Brian Showalter Avatar answered Oct 28 '22 16:10

Brian Showalter