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

Unified Diff: tools/release/common_includes.py

Issue 869613007: Retrieve recent v8 release information based on tags. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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/releases.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/release/common_includes.py
diff --git a/tools/release/common_includes.py b/tools/release/common_includes.py
index 20da369e2dab3277f5eec57a354baf309eb38e82..0857ea069a346b36e1ad594d5901df6111793174 100644
--- a/tools/release/common_includes.py
+++ b/tools/release/common_includes.py
@@ -591,6 +591,24 @@ class Step(GitRecipesMixin):
except GitFailedException:
self.WaitForResolvingConflicts(patch_file)
+ def GetRecentReleases(self, max_age):
+ # Make sure tags are fetched.
+ self.Git("fetch origin +refs/tags/*:refs/tags/*")
+
+ # Current timestamp.
+ time_now = int(self._side_effect_handler.GetUTCStamp())
+
+ # List every tag from a given period.
+ revisions = self.Git("rev-list --max-age=%d --tags" %
+ int(time_now - max_age)).strip()
+
+ def IsTagged(revision):
+ return VERSION_RE.match(
+ self.Git("describe --tags %s" % revision).strip())
+
+ # Filter out revisions who's tag is off by one or more commits.
+ return filter(IsTagged, revisions.splitlines())
+
def GetLatestVersion(self):
# Use cached version if available.
if self["latest_version"]:
« no previous file with comments | « no previous file | tools/release/releases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698