summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Doran <sdoran@ansible.com>2016-10-13 09:40:34 -0400
committerSam Doran <sdoran@ansible.com>2016-11-15 15:06:02 -0500
commit4f3bf3afa5759a2ea86e2789063ffed65a4ba1bc (patch)
tree7a3fce065ba91626d8bceb200984d2bfda146a39
parentc0dadd7535b9988ed4d433a29787b1db6202cfba (diff)
downloadansible-modules-core-4f3bf3afa5759a2ea86e2789063ffed65a4ba1bc.tar.gz
Change example syntax on hg module
-rw-r--r--source_control/hg.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/source_control/hg.py b/source_control/hg.py
index e0e50e2c..effc8a7c 100644
--- a/source_control/hg.py
+++ b/source_control/hg.py
@@ -95,11 +95,19 @@ requirements: [ ]
EXAMPLES = '''
# 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
+- hg:
+ repo: 'https://bitbucket.org/user/repo1'
+ dest: /home/user/repo1
+ revision: stable
+ purge: yes
# Example just 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
+- hg:
+ repo: 'git://bitbucket.org/user/repo'
+ dest: /srv/checkout
+ clone: no
+ update: no
'''
import os