|
|
@ -199,7 +199,7 @@ def main():
|
|
|
|
os.environ['LANG'] = 'C'
|
|
|
|
os.environ['LANG'] = 'C'
|
|
|
|
svn = Subversion(module, dest, repo, revision, username, password, svn_path)
|
|
|
|
svn = Subversion(module, dest, repo, revision, username, password, svn_path)
|
|
|
|
|
|
|
|
|
|
|
|
if not os.path.exists(dest):
|
|
|
|
if export or not os.path.exists(dest):
|
|
|
|
before = None
|
|
|
|
before = None
|
|
|
|
local_mods = False
|
|
|
|
local_mods = False
|
|
|
|
if module.check_mode:
|
|
|
|
if module.check_mode:
|
|
|
@ -227,6 +227,9 @@ def main():
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
module.fail_json(msg="ERROR: %s folder already exists, but its not a subversion repository." % (dest, ))
|
|
|
|
module.fail_json(msg="ERROR: %s folder already exists, but its not a subversion repository." % (dest, ))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if export:
|
|
|
|
|
|
|
|
module.exit_json(changed=True)
|
|
|
|
|
|
|
|
else:
|
|
|
|
after = svn.get_revision()
|
|
|
|
after = svn.get_revision()
|
|
|
|
changed = before != after or local_mods
|
|
|
|
changed = before != after or local_mods
|
|
|
|
module.exit_json(changed=changed, before=before, after=after)
|
|
|
|
module.exit_json(changed=changed, before=before, after=after)
|
|
|
|