Brian Ritchie's Blog

My ramblings on .NET & other development topics

News



Twitter

Blog Roll

Connect with me

RSS Subversion Change Log

Recently I needed to put the change log from our subversion repository online.  Luckily, Martin Pittenauer put together a great XSLT script that turns the XML produced by the SVN Log command into an RSS feed.  It utilizes eXSLT so you'll need to use a compatible XSLT tranform tool.

Step 1) Download the XSLT from Martin Pittenauer:
See his blog post for details http://codingmonkeys.de/map/log/articles/2003/10/07/svnlog-xslt

Step 2) Modify XSLT
Change the description, copyright, etc. in the XSLT to match your project

Step 3) Create script to pull log from XML and convert to RSS: 

Step 4) Schedule it using Windows Task Scheduler or CRON

This will publish your recent changes out to the feed.  It can then be viewed by IE7 or another RSS reader.

NOTE: You can pull recent changes on a branch, etc. by changing the URL passed to the svn log command.

 

 

Comments

Christopher Steen said:

RSS Subversion Change Log [Via: brian_ritchie ] XML Notepad 2006 [Via: Ryan Carter ] Updated Windows...

# September 3, 2006 10:31 PM

RSS Subversion Change Log said:

Pingback from  RSS Subversion Change Log

# November 28, 2007 11:13 AM

Jonas said:

Where to find that nxslt2.exe? Can anyone provide a download location?

The real page for nxslt2.exe gives me a error.

# July 1, 2008 7:23 AM

Jonas said:

Found a copy bundled with some other application :)

Thank you for this tip, works great!

One question: can I transform all Chr(13) entries to BR-tags? That would allow me to show new lines in the RSS-feed.

# July 2, 2008 10:37 AM

Brian Ritchie's Blog said:

If you're like me, you like to keep an eye on what is being committed to your subversion repository.

# July 14, 2008 9:30 PM

Cieszak said:

There was incompatibility problem. When i generate my rss with this xslt, thunderbird won't get messages.

Solution: add link tag to item

(also I done some improvements, working with http://validator.w3.org/feed/ which may be required too)

besides... great thing :)

# December 3, 2008 3:25 AM

Patrick said:

The link to Martin Pittenauer's blog seems to be broken, but you can see the posting through the search results: codingmonkeys.de/.../search or just download svnlog.xslt from www.codingmonkeys.de/.../svnlog-xslt.tgz

# March 31, 2009 1:28 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)