Class: Bob::SCM::Svn
Instance Attribute Summary
Attributes inherited from Abstract
#branch, #uri
Instance Method Summary
collapse
Methods inherited from Abstract
#initialize, #working_dir
Instance Method Details
#info(revision) ⇒ Object
6
7
8
9
10
11
12
13
|
# File 'lib/bob/scm/svn.rb', line 6
def info(revision)
dump = %x[svn log --non-interactive --revision #{revision} #{uri}].split("\n")
meta = dump[1].split(" | ")
{ :message => dump[3],
:author => meta[1],
:committed_at => Time.parse(meta[2]) }
end
|
#with_commit(commit_id) ⇒ Object
15
16
17
18
19
|
# File 'lib/bob/scm/svn.rb', line 15
def with_commit(commit_id)
update_code
checkout(commit_id)
yield
end
|