Class: Capistrano::Deploy::SCM::Mercurial

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

Implements the Capistrano SCM interface for the Mercurial revision control system (www.selenic.com/mercurial/). Latest updates at tackletechnology.org/oss/cap2-mercurial

### Methods

checkout diff export handle_data head log query_revision sync

### Public Instance methods

checkout(changeset, destination)

Clone the repository and update to the specified changeset.

diff(from, to=nil)

Compute the difference between the two changesets `from` and `to` as a unified diff.

export(revision, destination)

One day we will have hg archive, although i think its not needed

handle_data(state, stream, text)

Determine response for SCM prompts user/pass can come from ssh and http distribution methods yes/no is for when ssh asks you about fingerprints

head()

For mercurial HEAD == tip except that it bases this assumption on what tip is in the current repository (so push before you deploy)

log(from, to=nil)

Return a log of all changes between the two specified changesets, `from` and `to`, inclusive or the log for `from` if `to` is omitted.

query_revision(changeset) {|cmd| ...}

Translates a tag to a changeset if needed or just returns changeset.

sync(changeset, destination)

Pull from the repository and update to the specified changeset.

[Validate]