class Churn::SvnAnalyzer

analizes SVN SCM to find recently changed files, and what lines have been altered

Public Class Methods

supported?() click to toggle source
# File lib/churn/scm/svn_analyzer.rb, line 6
def self.supported?
  File.exist?(".svn")
end

Public Instance Methods

get_logs() click to toggle source
# File lib/churn/scm/svn_analyzer.rb, line 10
def get_logs
  %xsvn log --verbose#{date_range}#{svn_credentials}`.split(/\n/).map { |line| clean_up_svn_line(line) }.compact
end
get_revisions() click to toggle source

below 2 methods aren’t supported by SVN so they become noops

# File lib/churn/scm/svn_analyzer.rb, line 15
def get_revisions
  []
end
get_updated_files_change_info(revision, revisions) click to toggle source
# File lib/churn/scm/svn_analyzer.rb, line 19
def get_updated_files_change_info(revision, revisions)
  {}
end