diff --git a/lib/tool_shed/util/hg_util.py b/lib/tool_shed/util/hg_util.py index 5440a237ce7..1268de69015 100644 --- a/lib/tool_shed/util/hg_util.py +++ b/lib/tool_shed/util/hg_util.py @@ -61,6 +61,8 @@ def commit_changeset(repo_path, full_path_to_changeset, username, message): except Exception as e: error_message = "Error committing '%s' to repository: %s" % (full_path_to_changeset, e) if isinstance(e, subprocess.CalledProcessError): + if e.returncode == 1 and 'nothing changed' in e.output: + return error_message += "\nOutput was:\n%s" % e.output raise Exception(error_message)