From 8a1caba407ebc77cf90ef8968951483b92728808 Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Thu, 13 Oct 2016 09:40:34 -0400 Subject: [PATCH] Change example syntax on hg module --- lib/ansible/modules/source_control/hg.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/source_control/hg.py b/lib/ansible/modules/source_control/hg.py index e0e50e2c795..effc8a7c8c9 100644 --- a/lib/ansible/modules/source_control/hg.py +++ b/lib/ansible/modules/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