Class: Capistrano::Deploy::SCM::Subversion

Class | Capistrano::Deploy::SCM::Subversion
In: | lib/capistrano/recipes/deploy/scm/subversion.rb
Parent: | Base

Implements the Capistrano SCM interface for the Subversion revision control system (subversion.tigris.org).

### Methods

checkout diff export handle_data head log next_revision query_revision sync

### Public Instance methods

checkout(revision, destination)

Returns the command that will check out the given revision to the given destination.

diff(from, to=nil)

Returns the command that will do an "svn diff" for the two revisions.

export(revision, destination)

Returns the command that will do an "svn export" of the given revision to the given destination.

handle_data(state, stream, text)

Determines what the response should be for a particular bit of text from the SCM. Password prompts, connection requests, passphrases, etc. are handled here.

head()

Subversion understands ‘HEAD’ to refer to the latest revision in the repository.

log(from, to=nil)

Returns an "svn log" command for the two revisions.

next_revision(revision)

Increments the given revision number and returns it.

query_revision(revision) {|command| ...}

Attempts to translate the given revision identifier to a "real" revision. If the identifier is an integer, it will simply be returned. Otherwise, this will yield a string of the commands it needs to be executed (svn info), and will extract the revision from the response.

sync(revision, destination)

Returns the command that will do an "svn update" to the given revision, for the working copy at the given destination.

[Validate]