Merge pull request #1990 from roller/devel
Specify repo option with hg pull
This commit is contained in:
commit
6c8b2c4b70
1 changed files with 3 additions and 3 deletions
6
hg
6
hg
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue