Parameter |
Choices/Defaults |
Comments |
---|---|---|
clone
(added in 2.3) |
|
If
no , do not clone the repository if it does not exist locally. |
dest
required |
|
Absolute path of where the repository should be cloned to. This parameter is required, unless clone and update are set to no
|
executable
(added in 1.4) |
|
Path to hg executable to use. If not supplied, the normal mechanism for resolving binary paths will be used.
|
force
|
|
Discards uncommitted changes. Runs
hg update -C . Prior to 1.9, the default was `yes`. |
purge
|
|
Deletes untracked files. Runs
hg purge . |
repo
required |
|
The repository address.
aliases: name |
revision
|
|
Equivalent
-r option in hg command which could be the changeset, revision number, branch name or even tag.aliases: version |
update
(added in 2.0) |
|
If
no , do not retrieve new revisions from the origin repository |
Note
- name: Ensure the current working copy is inside the stable branch and deletes untracked files if any.
hg:
repo: https://bitbucket.org/user/repo1
dest: /home/user/repo1
revision: stable
purge: yes
- name: Get information about the repository whether or not it has already been cloned locally.
hg:
repo: git://bitbucket.org/user/repo
dest: /srv/checkout
clone: no
update: no
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
Hint
If you notice any issues in this documentation you can edit this document to improve it.