Archive for the ‘Subversion’ Category

Subversion and Apache Gotcha

Thursday, November 29th, 2007

So, this is the second time I have tried to address the problem I was getting with some Subversion repositories I was trying to configure to be served by Apache. I was trying to use the SVNPath directive to serve one repository but it was not having any of it, so instead I ended up serving them as a temporary measure using SVNParentPath in the format http://svn.example.com/~name/repos/ which is not what I wanted. I am using the Location container in Apache configuration to configure up my repositories, the path I had specified was /~name/. This is where the problem comes in, I would try to checkout the repository over the network and be greeted with a 405 Method Not Allowed error like so:

svn: PROPFIND request failed on '/~name'
svn: PROPFIND of '/~name': 405 Method Not Allowed (http://svn.example.com)

This stuck me as odd, it seemed the Apache was not serving the repository URI using the WebDAV module. When I gave up on an earlier attempt I reverted to using SVNParentPath and accessing the repository over the URI http://svn.example.com/~name/repos/ which worked perfectly and I couldn’t spot why. Turns out I made a single character mistake, my Apache configuration was set to use the path of /~name/ I should have used /~name because SVN truncates the trailing slash even if you specify it on the command line. Bugger!

SVN RSS Feeds

Thursday, January 25th, 2007

How does one go about making a RSS feed from subversion change logs? I asked myself this very question earlier today, and set out to seek an answer. I found points of interest here, and here.

Eventually though I came across an XSLT stylesheet for the output of svn --log --xml which transforms it into RSS 2.0 bingo! I found the stylesheet from this blog.

I munged it all together into a PHP script and hey presto, I was laughing. For anyone that is interested here is the feed.