1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Specify repo option with hg pull

Fixes #1989
This commit is contained in:
Joel Roller 2013-02-04 17:19:59 -06:00
parent c1b63d1500
commit ac716ac9ca

View file

@ -184,8 +184,8 @@ def hg_cleanup(module, dest, force, purge):
else:
return False
def hg_pull(module, dest, revision):
return _hg_command(module, ['pull', '-r', revision, '-R', dest])
def hg_pull(module, dest, revision, repo):
return _hg_command(module, ['pull', '-r', revision, '-R', dest, repo])
def hg_update(module, dest, revision):
return _hg_command(module, ['update', '-R', dest])
@ -233,7 +233,7 @@ def main():
# can perform force and purge
cleaned = hg_cleanup(module, dest, force, purge)
(rc, out, err) = hg_pull(module, dest, revision)
(rc, out, err) = hg_pull(module, dest, revision, repo)
if rc != 0:
module.fail_json(msg=err)