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
Private SSH key on the minion server for authentication (ssh://)
New in version 2015.5.0.
CLI Example:
salt '*' hg.clone /path/to/repo https://bitbucket.org/birkenfeld/sphinx
Mimic 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
Private SSH key on the minion server for authentication (ssh://)
New in version 2015.5.0.
CLI Example:
salt '*' hg.pull /path/to/repo opts=-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
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 2014.7.2