[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

generate RSS feed in post-commit hook

From: SteveKing <steveking_at_gmx.ch>
Date: 2003-06-22 18:02:01 CEST

Hi,

Attached is a small program which generates an rss feed
(xml-file) when run in a post-commit hook.

Run it like:
RSSFeed path_to_repo revnum path_to_config_file

The rss feed has the titles built from the username
who committed and the date/time.
The description field is the log-message.
The diff of the commit is saved in a separate file
and the rss-link is pointing to that file.

Please have a look at the config file to get a better
idea on how the rss feed will look like.

Note: this is a very quick hack just to make the
program do what I wanted. Most of the code
is copied from the svnlook part (changed where
necessary). No special attention was paid for
error handling or coding styles - but it works.

If someone wants to extend it: do it!

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Sun Jun 22 18:03:06 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.