From 52d769d36c0f143726224117a57c523ca5664d60 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 29 Jan 2015 18:17:48 -0800 Subject: [PATCH] Reverse the force parameter for the hg module --- lib/ansible/modules/source_control/hg.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/source_control/hg.py b/lib/ansible/modules/source_control/hg.py index c2bd0d9d953..d83215fabe1 100644 --- a/lib/ansible/modules/source_control/hg.py +++ b/lib/ansible/modules/source_control/hg.py @@ -54,9 +54,10 @@ options: aliases: [ version ] force: description: - - Discards uncommitted changes. Runs C(hg update -C). + - Discards uncommitted changes. Runs C(hg update -C). Prior to + 1.9, the default was `yes`. required: false - default: "yes" + default: "no" choices: [ "yes", "no" ] purge: description: @@ -207,7 +208,7 @@ def main(): repo = dict(required=True, aliases=['name']), dest = dict(required=True), revision = dict(default=None, aliases=['version']), - force = dict(default='yes', type='bool'), + force = dict(default='no', type='bool'), purge = dict(default='no', type='bool'), executable = dict(default=None), ),