Support for the Mercurial SCM
Export a tarball from the repository
If prefix is not specified it defaults to the basename of the repo directory.
CLI Example:
salt '*' hg.archive /path/to/repo output=/tmp/archive.tgz fmt=tgz
Clone a new repository
CLI Example:
salt '*' hg.clone /path/to/repo https://bitbucket.org/birkenfeld/sphinx
Mimick git describe and return an identifier for the given revision
CLI Example:
salt '*' hg.describe /path/to/repo
Perform a pull on the given repository
CLI Example:
salt '*' hg.pull /path/to/repo '-u'
Returns the long hash of a given identifier (hash, branch, tag, HEAD, etc)
CLI Example:
salt '*' hg.revision /path/to/repo mybranch
Update to a given revision
CLI Example:
salt devserver1 hg.update /path/to/repo somebranch