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

Unified Diff: tools/release/releases.py

Issue 1090183002: [release-tools] Chrome V8 version is now converted to real V8 version (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Swapped ' with " Created 5 years, 8 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/release/test_scripts.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/release/releases.py
diff --git a/tools/release/releases.py b/tools/release/releases.py
index 5b826fccba089d27afc2f0cab0fefc209ae033af..fd0cd3eb5fc5721a80be3c25f97aff1fa368963a 100755
--- a/tools/release/releases.py
+++ b/tools/release/releases.py
@@ -460,13 +460,12 @@ class RetrieveInformationOnChromeReleases(Step):
chrome_releases = {"canaries": canaries}
self["chrome_releases"] = chrome_releases
- def _GetGitHashForV8Version(self, v8_version):
+ def _ConvertToRealV8Version(self, v8_version):
if v8_version == "N/A":
return ""
if v8_version.split(".")[3]== "0":
- return self.GitGetHashOfTag(v8_version[:-2])
-
- return self.GitGetHashOfTag(v8_version)
+ return v8_version[:-2]
+ return v8_version
def _CreateCandidate(self, current_version):
params = None
@@ -477,11 +476,17 @@ class RetrieveInformationOnChromeReleases(Step):
params,
wait_plan=[5, 20]
)
- previous_v8_version = json.loads(result_raw)["v8_version"]
- v8_previous_version_hash = self._GetGitHashForV8Version(previous_v8_version)
-
- current_v8_version = current_version["v8_version"]
- v8_version_hash = self._GetGitHashForV8Version(current_v8_version)
+ previous_v8_version = (
+ self._ConvertToRealV8Version(json.loads(result_raw)["v8_version"]))
Michael Achenbach 2015/04/28 20:48:49 nit: 4 spaces after round parenthesis or better: p
+ v8_previous_version_hash = ""
+ if previous_v8_version != "":
+ v8_previous_version_hash = self.GitGetHashOfTag(previous_v8_version)
+
+ current_v8_version = (
+ self._ConvertToRealV8Version(current_version["v8_version"]))
+ v8_version_hash = ""
+ if current_v8_version != "":
+ v8_version_hash = self.GitGetHashOfTag(current_v8_version)
current_candidate = {
"chrome_version": current_version["version"],
« no previous file with comments | « no previous file | tools/release/test_scripts.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698