DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Accessing Subversion Repository Information In Ruby
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.