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 |
11 # gclient fetch | 11 # gclient fetch |
12 | 12 |
13 import argparse | 13 import argparse |
14 import csv | 14 import csv |
15 import itertools | 15 import itertools |
16 import json | 16 import json |
17 import os | 17 import os |
18 import re | 18 import re |
19 import sys | 19 import sys |
20 | 20 |
21 from common_includes import * | 21 from common_includes import * |
22 | 22 |
23 CHROMIUM = "CHROMIUM" | 23 CHROMIUM = "CHROMIUM" |
24 | 24 |
25 CONFIG = { | 25 CONFIG = { |
26 BRANCHNAME: "retrieve-v8-releases", | 26 BRANCHNAME: "retrieve-v8-releases", |
27 PERSISTFILE_BASENAME: "/tmp/v8-releases-tempfile", | 27 PERSISTFILE_BASENAME: "/tmp/v8-releases-tempfile", |
28 DOT_GIT_LOCATION: ".git", | |
29 VERSION_FILE: "src/version.cc", | 28 VERSION_FILE: "src/version.cc", |
30 } | 29 } |
31 | 30 |
32 # Expression for retrieving the bleeding edge revision from a commit message. | 31 # Expression for retrieving the bleeding edge revision from a commit message. |
33 PUSH_MESSAGE_RE = re.compile(r".* \(based on bleeding_edge revision r(\d+)\)$") | 32 PUSH_MESSAGE_RE = re.compile(r".* \(based on bleeding_edge revision r(\d+)\)$") |
34 | 33 |
35 # Expression for retrieving the merged patches from a merge commit message | 34 # Expression for retrieving the merged patches from a merge commit message |
36 # (old and new format). | 35 # (old and new format). |
37 MERGE_MESSAGE_RE = re.compile(r"^.*[M|m]erged (.+)(\)| into).*$", re.M) | 36 MERGE_MESSAGE_RE = re.compile(r"^.*[M|m]erged (.+)(\)| into).*$", re.M) |
38 | 37 |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 UpdateChromiumCheckout, | 458 UpdateChromiumCheckout, |
460 RetrieveChromiumV8Releases, | 459 RetrieveChromiumV8Releases, |
461 RietrieveChromiumBranches, | 460 RietrieveChromiumBranches, |
462 CleanUp, | 461 CleanUp, |
463 WriteOutput, | 462 WriteOutput, |
464 ] | 463 ] |
465 | 464 |
466 | 465 |
467 if __name__ == "__main__": # pragma: no cover | 466 if __name__ == "__main__": # pragma: no cover |
468 sys.exit(Releases(CONFIG).Run()) | 467 sys.exit(Releases(CONFIG).Run()) |
OLD | NEW |