Accessing Subversion Repository Information In Ruby
Join the DZone community and get the full member experience.Join For Free
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.
Opinions expressed by DZone contributors are their own.