Method: Capistrano::Deploy::SCM::Accurev::InternalRevision.parse

Defined in:
lib/capistrano/recipes/deploy/scm/accurev.rb

.parse(string) ⇒ Object



140
141
142
143
144
145
146
147
# File 'lib/capistrano/recipes/deploy/scm/accurev.rb', line 140

def self.parse(string)
  match = /([^\/]+)(\/(.+)){0,1}/.match(string)
  raise "Unrecognized revision identifier: #{string}" unless match

  stream = match[1]
  transaction_id = match[3] || 'highest'
  InternalRevision.new(stream, transaction_id)
end