kirby spies your svn

I added svn commit watching to Kirby. Add a repository url with the add_svn keyword. Kirby will poll more often when people are talking, less when the channel is idle, and announce the details of each commit.

remote access considered fine

Because it is not callback-based, you can watch any repository that has anonymous checkout. If you need Kirby to authenticate, you can set up an ssh key and use an svn+ssh:// url.

Download the latest version from Fauna, or check out from svn as described here.

code story

The original methods, borrowed from Matzbot, were hackish, threaded, and large, and used regular expressions for parsing. I rewrote these to an unthreaded 16-line procedure. Then, noticing that svn log has an --xml parameter, I rewrote it again to parse with Hpricot. 11 lines total, at the small cost of another dependency.

Hpricot makes xml parsing a joy.

2 Comments

  1. Chris
    Posted August 20, 2007 at 8:29 PM | Permalink

    Did you work those changes back into matz?

  2. evan
    Posted August 20, 2007 at 8:30 PM | Permalink

    No. You’re welcome to, but I didn’t really see any benefit.

Follow

Get every new post delivered to your Inbox.

Join 66 other followers