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

Side by Side Diff: tools/release/releases.py

Issue 977903002: Make auto-roller roll recent release based on timestamp. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « tools/release/common_includes.py ('k') | tools/release/test_scripts.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 the V8 project authors. All rights reserved. 2 # Copyright 2014 the V8 project authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # This script retrieves the history of all V8 branches and 6 # This script retrieves the history of all V8 branches and
7 # their corresponding Chromium revisions. 7 # their corresponding Chromium revisions.
8 8
9 # Requires a chromium checkout with branch heads: 9 # Requires a chromium checkout with branch heads:
10 # gclient sync --with_branch_heads 10 # gclient sync --with_branch_heads
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 # Clean up checked-out version file. 287 # Clean up checked-out version file.
288 self.GitCheckoutFileSafe(VERSION_FILE, "HEAD") 288 self.GitCheckoutFileSafe(VERSION_FILE, "HEAD")
289 return releases 289 return releases
290 290
291 291
292 def RunStep(self): 292 def RunStep(self):
293 self.GitCreateBranch(self._config["BRANCHNAME"]) 293 self.GitCreateBranch(self._config["BRANCHNAME"])
294 releases = [] 294 releases = []
295 if self._options.branch == 'recent': 295 if self._options.branch == 'recent':
296 # List every release from the last 7 days. 296 # List every release from the last 7 days.
297 revisions = self.GetRecentReleases(max_age=7 * 24 * 60 * 60) 297 revisions = self.GetRecentReleases(max_age=7 * DAY_IN_SECONDS)
298 for revision in revisions: 298 for revision in revisions:
299 releases += self.GetReleaseFromRevision(revision) 299 releases += self.GetReleaseFromRevision(revision)
300 elif self._options.branch == 'all': # pragma: no cover 300 elif self._options.branch == 'all': # pragma: no cover
301 # Retrieve the full release history. 301 # Retrieve the full release history.
302 for branch in self.vc.GetBranches(): 302 for branch in self.vc.GetBranches():
303 releases += self.GetReleasesFromBranch(branch) 303 releases += self.GetReleasesFromBranch(branch)
304 releases += self.GetReleasesFromBranch(self.vc.CandidateBranch()) 304 releases += self.GetReleasesFromBranch(self.vc.CandidateBranch())
305 releases += self.GetReleasesFromBranch(self.vc.MasterBranch()) 305 releases += self.GetReleasesFromBranch(self.vc.MasterBranch())
306 else: # pragma: no cover 306 else: # pragma: no cover
307 # Retrieve history for a specified branch. 307 # Retrieve history for a specified branch.
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 UpdateChromiumCheckout, 504 UpdateChromiumCheckout,
505 RetrieveChromiumV8Releases, 505 RetrieveChromiumV8Releases,
506 RietrieveChromiumBranches, 506 RietrieveChromiumBranches,
507 CleanUp, 507 CleanUp,
508 WriteOutput, 508 WriteOutput,
509 ] 509 ]
510 510
511 511
512 if __name__ == "__main__": # pragma: no cover 512 if __name__ == "__main__": # pragma: no cover
513 sys.exit(Releases().Run()) 513 sys.exit(Releases().Run())
OLDNEW
« no previous file with comments | « tools/release/common_includes.py ('k') | tools/release/test_scripts.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698