Method: Svn#tag

Defined in:
lib/version_control/svn.rb

#tag(source_path, tag_name, message) ⇒ Object

Performs an svn tag

Attributes

  • source_path - path in repo to tag

  • tag_name - name for tag

  • message - message to add to tag

Returns

  • command output



143
144
145
146
147
148
149
# File 'lib/version_control/svn.rb', line 143

def tag(source_path, tag_name, message)
  ipos = @url.index("trunk")
  raise "Cannot locate trunk path" if ipos.nil?
  tag_path = @url[0..ipos] + "tags/" + tag_name
  cmd = "#{@svn} copy #{source_path} #{tag_path} -m \"#{message}\""
  process_cmd(cmd)
end