require 'yaml' svn_info = YAML.load(`svn info /my/working/copy`) puts svn_info['URL'] #=> "svn://some-remote-repository.com/svn" puts svn_info['Revision'] #=> "133"
Should also work with svk info as well. Credit to htonl in #caboose for the YAML tip.