Class: Bob::SCM::Svn
Instance Attribute Summary
Attributes inherited from Abstract
Instance Method Summary collapse
Methods inherited from Abstract
#directory_for, #initialize, #with_commit
Constructor Details
This class inherits a constructor from Bob::SCM::Abstract
Instance Method Details
#head ⇒ Object
15 16 17 18 |
# File 'lib/bob/scm/svn.rb', line 15 def head `svn info #{uri}`.split("\n").detect { |l| l =~ /^Revision: (\d+)/ } $1.to_s end |
#info(revision) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/bob/scm/svn.rb', line 6 def info(revision) dump = `svn log --non-interactive --revision #{revision} #{uri}`.split("\n") = dump[1].split(" | ") { :message => dump[3], :author => [1], :committed_at => Time.parse([2]) } end |