Friday, 5 February 2010
RSS feeds in mod_dav_svn
Wouldn't it be cool if mod_dav_svn (the Subversion plugin for Apache) offered RSS (or Atom) feeds for repository entities? One could browse through the repository with a browser and easily monitor repository entities for changes via RSS. Subscribing to a directory entity should report changes to any contained entity.
I think that adding an additional URL handler like ".../!svn/rss/..." (similar to others like ".../!svn/vcc/..." or ".../!svn/his/...") would be a reasonable implementation choice. The first thing to implement would to add the RSS element links for all listed repository entities in the generated HTML output (<link rel="alternate" type="application/rss+xml" title="..." href="..."/>) - that should be nearly trivial. Far more complex will be the implementation for the RSS URL handler itself: it requires accessing the repository's log data and should optimally be rather performant (ie: not parse the log data from all versions in the backend). My guess is that there's no way around having to maintain a sqlite(/whathever) log cache for efficiency.
Oh, right: I don't think that I'll be implementing this feature any time soon. What about you, don't you have some spare time for this project? Leave a comment or send me an e-mail in case you want to tackle this.
[Trackback URL for this entry]
