module History::SVN
History::SVN
is a connector for viewing log information in SVN
@author Bryan T. Meyers
Public Class Methods
get_log(conf, repo, id = nil)
click to toggle source
Get the log information for any part of a Repo
@param [Hash] conf the repo config @param [String] repo the name of the repository to access @param [String] id the sub-URI of the item to access @return [Hash] the history entries
# File lib/app/history/svn.rb, line 31 def self.get_log(conf, repo, id = nil) options = "--username #{conf['user']} --password #{conf['password']}" uri = "#{conf['protocol']}://#{conf['host']}/#{repo}" if id.nil? or id.empty? return 404 end if conf['web_folder'] uri += "/#{conf['web_folder']}" end uri += "/#{id}" log = `svn log #{options} -v --xml '#{uri}'` if $?.exitstatus != 0 return 404 end log = CobraVsMongoose.xml_to_hash(log) log['log']['logentry'] end