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

Side by Side Diff: tools/push-to-trunk/releases.py

Issue 725073002: Fix releases script after git migration. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years, 1 month 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/push-to-trunk/git_recipes.py ('k') | tools/push-to-trunk/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 trunk revisions and 6 # This script retrieves the history of all V8 branches and trunk revisions 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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 cwd = self._options.chromium 315 cwd = self._options.chromium
316 self.GitCheckout("master", cwd=cwd) 316 self.GitCheckout("master", cwd=cwd)
317 self.GitPull(cwd=cwd) 317 self.GitPull(cwd=cwd)
318 self.GitCreateBranch(self.Config("BRANCHNAME"), cwd=cwd) 318 self.GitCreateBranch(self.Config("BRANCHNAME"), cwd=cwd)
319 319
320 320
321 def ConvertToCommitNumber(step, revision): 321 def ConvertToCommitNumber(step, revision):
322 # Simple check for git hashes. 322 # Simple check for git hashes.
323 if revision.isdigit() and len(revision) < 8: 323 if revision.isdigit() and len(revision) < 8:
324 return revision 324 return revision
325 return step.GitConvertToSVNRevision( 325 return step.GetCommitPositionNumber(
326 revision, cwd=os.path.join(step._options.chromium, "v8")) 326 revision, cwd=os.path.join(step._options.chromium, "v8"))
327 327
328 328
329 class RetrieveChromiumV8Releases(Step): 329 class RetrieveChromiumV8Releases(Step):
330 MESSAGE = "Retrieve V8 releases from Chromium DEPS." 330 MESSAGE = "Retrieve V8 releases from Chromium DEPS."
331 331
332 def RunStep(self): 332 def RunStep(self):
333 cwd = self._options.chromium 333 cwd = self._options.chromium
334 releases = filter( 334 releases = filter(
335 lambda r: r["branch"] in [self.vc.CandidateBranch(), 335 lambda r: r["branch"] in [self.vc.CandidateBranch(),
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 UpdateChromiumCheckout, 497 UpdateChromiumCheckout,
498 RetrieveChromiumV8Releases, 498 RetrieveChromiumV8Releases,
499 RietrieveChromiumBranches, 499 RietrieveChromiumBranches,
500 CleanUp, 500 CleanUp,
501 WriteOutput, 501 WriteOutput,
502 ] 502 ]
503 503
504 504
505 if __name__ == "__main__": # pragma: no cover 505 if __name__ == "__main__": # pragma: no cover
506 sys.exit(Releases().Run()) 506 sys.exit(Releases().Run())
OLDNEW
« no previous file with comments | « tools/push-to-trunk/git_recipes.py ('k') | tools/push-to-trunk/test_scripts.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698