Using Ruby's SVN bindings

published: 25 Sep 2008 | tags: ruby

I couldn’t find the simplest example of using Ruby’s SVN bindings. Here’s something simple, get the info on some file in a local working directory.

require 'svn/client'

ctx =
ctx.add_simple_provider'some file in your svn working dir') do |path,info|
  p path
  p info.last_changed_rev

This page is also useful.