| OLD | NEW | 
|    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  Loading... | 
|  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  Loading... | 
|  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()) | 
| OLD | NEW |