Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Unified Diff: tools/push-to-trunk/bump_up_version.py

Issue 544153002: Add ability to make pure svn commits to roll scripts (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/push-to-trunk/common_includes.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/push-to-trunk/bump_up_version.py
diff --git a/tools/push-to-trunk/bump_up_version.py b/tools/push-to-trunk/bump_up_version.py
index af5f73a600d03d461db2f0f4777c8622b87fe340..e4e75a1a723fcbfcfbaf7f0aa5b45d34de66f665 100755
--- a/tools/push-to-trunk/bump_up_version.py
+++ b/tools/push-to-trunk/bump_up_version.py
@@ -27,6 +27,7 @@ from common_includes import *
CONFIG = {
PERSISTFILE_BASENAME: "/tmp/v8-bump-up-version-tempfile",
+ PATCH_FILE: "/tmp/v8-bump-up-version-tempfile-patch-file",
VERSION_FILE: "src/version.cc",
}
@@ -196,12 +197,16 @@ class ChangeVersion(Step):
self.SetVersion(self.Config(VERSION_FILE), "new_")
try:
- self.GitCommit("[Auto-roll] Bump up version to %s\n\nTBR=%s" %
- (self["new_version"], self._options.author))
- self.GitUpload(author=self._options.author,
- force=self._options.force_upload,
- bypass_hooks=True)
- self.GitDCommit()
+ msg = "[Auto-roll] Bump up version to %s" % self["new_version"]
+ self.GitCommit("%s\n\nTBR=%s" % (msg, self._options.author),
+ author=self._options.author)
+ if self._options.svn:
+ self.SVNCommit("branches/bleeding_edge", msg)
+ else:
+ self.GitUpload(author=self._options.author,
+ force=self._options.force_upload,
+ bypass_hooks=True)
+ self.GitDCommit()
print "Successfully changed the version."
finally:
# Clean up.
« no previous file with comments | « no previous file | tools/push-to-trunk/common_includes.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698