improve commit message for version updates by listing the previous version

This commit is contained in:
Arjan van de Ven
2015-11-25 14:42:16 -05:00
parent 9d30acb7a2
commit ac051a7487
+4 -1
View File
@@ -66,4 +66,7 @@ def commit_to_git(path):
if build.success == 0:
return
call("git commit -a -m \"Autospec creation for version " + tarball.version + "\"", cwd=path)
if config.old_version != None and config.old_version != tarball.version:
call("git commit -a -m \"Autospec creation for version update from " + config.old_version + " to " + tarball.version + "\"", cwd=path)
else:
call("git commit -a -m \"Autospec creation for version " + tarball.version + "\"", cwd=path)