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 | 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
163 def GetReleaseDict( | 163 def GetReleaseDict( |
164 self, git_hash, master_position, master_hash, branch, version, | 164 self, git_hash, master_position, master_hash, branch, version, |
165 patches, cl_body): | 165 patches, cl_body): |
166 revision = self.GetCommitPositionNumber(git_hash) | 166 revision = self.GetCommitPositionNumber(git_hash) |
167 return { | 167 return { |
168 # The cr commit position number on the branch. | 168 # The cr commit position number on the branch. |
169 "revision": revision, | 169 "revision": revision, |
170 # The git revision on the branch. | 170 # The git revision on the branch. |
171 "revision_git": git_hash, | 171 "revision_git": git_hash, |
172 # The cr commit position number on master. | 172 # The cr commit position number on master. |
173 "bleeding_edge": master_position, | 173 "master_position": master_position, |
tandrii(chromium)
2015/01/26 14:33:13
oh, the other CL didn't have that key change. Now
Michael Achenbach
2015/01/26 14:59:12
Yes - because that's an api change as the version
| |
174 # The same for git. | 174 # The same for git. |
175 "bleeding_edge_git": master_hash, | 175 "master_hash": master_hash, |
176 # The branch name. | 176 # The branch name. |
177 "branch": branch, | 177 "branch": branch, |
178 # The version for displaying in the form 3.26.3 or 3.26.3.12. | 178 # The version for displaying in the form 3.26.3 or 3.26.3.12. |
179 "version": version, | 179 "version": version, |
180 # The date of the commit. | 180 # The date of the commit. |
181 "date": self.GitLog(n=1, format="%ci", git_hash=git_hash), | 181 "date": self.GitLog(n=1, format="%ci", git_hash=git_hash), |
182 # Merged patches if available in the form 'r1234, r2345'. | 182 # Merged patches if available in the form 'r1234, r2345'. |
183 "patches_merged": patches, | 183 "patches_merged": patches, |
184 # Default for easier output formatting. | 184 # Default for easier output formatting. |
185 "chromium_revision": "", | 185 "chromium_revision": "", |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
498 UpdateChromiumCheckout, | 498 UpdateChromiumCheckout, |
499 RetrieveChromiumV8Releases, | 499 RetrieveChromiumV8Releases, |
500 RietrieveChromiumBranches, | 500 RietrieveChromiumBranches, |
501 CleanUp, | 501 CleanUp, |
502 WriteOutput, | 502 WriteOutput, |
503 ] | 503 ] |
504 | 504 |
505 | 505 |
506 if __name__ == "__main__": # pragma: no cover | 506 if __name__ == "__main__": # pragma: no cover |
507 sys.exit(Releases().Run()) | 507 sys.exit(Releases().Run()) |
OLD | NEW |