Skip to navigation

Detecting subversion changes with rexml

Published March 11, 2007

Until I have my tumblr tumblog themed and they add some nice code posting facilities, here’s a nice snippet for you all.

Detect whether any files on the SVN server have been changed in a more recent revision (i.e. something like CC.rb should rebuild your project):


require 'rexml/document'
REXML::Document.new(`svn status -u --xml`).elements.to_a("//entry//repos-status").any?

Previously: CruiseControl.rb

Next up: tumble me too

Thoughts

toolmantim

I’m Tim Lucas, a user experience developer currently in Sydney Australia.

I occasionally write, snap photos, present on various technical topics, tweet my going-ons, share teh codes and post tidbits to the scrapbook.

Most recently I published Simplifying ticket sales on sydneyoperahouse.com (February 16, 2010)

Work with me via Agency Rainford, or shoot an email to and say hello.

Powered by salt water