Class: Churn::SvnAnalyzer
- Inherits:
-
SourceControl
- Object
- SourceControl
- Churn::SvnAnalyzer
- Defined in:
- lib/churn/scm/svn_analyzer.rb
Overview
Analyzes SVN SCM to find recently changed files, and what lines have been altered
Class Method Summary collapse
Instance Method Summary collapse
- #generate_history(starting_point) ⇒ Object
- #get_logs ⇒ Array
-
#get_revisions ⇒ Array
This method is not supported by SVN.
-
#get_updated_files_change_info(revision, revisions) ⇒ Hash
This method is not supported by SVN.
Methods inherited from SourceControl
#get_updated_files_from_log, #initialize, set_source_control
Constructor Details
This class inherits a constructor from Churn::SourceControl
Class Method Details
.supported? ⇒ Boolean
7 8 9 |
# File 'lib/churn/scm/svn_analyzer.rb', line 7 def self.supported? File.exist?(".svn") end |
Instance Method Details
#generate_history(starting_point) ⇒ Object
17 18 19 |
# File 'lib/churn/scm/svn_analyzer.rb', line 17 def generate_history(starting_point) raise NotImplementedError, "currently the generate history option does not support subversion" end |
#get_logs ⇒ Array
12 13 14 |
# File 'lib/churn/scm/svn_analyzer.rb', line 12 def get_logs `svn log --verbose#{date_range}#{svn_credentials}`.split(/\n/).map { |line| clean_up_svn_line(line) }.compact end |
#get_revisions ⇒ Array
This method is not supported by SVN
23 24 25 |
# File 'lib/churn/scm/svn_analyzer.rb', line 23 def get_revisions [] end |
#get_updated_files_change_info(revision, revisions) ⇒ Hash
This method is not supported by SVN
29 30 31 |
# File 'lib/churn/scm/svn_analyzer.rb', line 29 def get_updated_files_change_info(revision, revisions) {} end |