OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2013 the V8 project authors. All rights reserved. | 2 # Copyright 2013 the V8 project authors. All rights reserved. |
3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
5 # met: | 5 # met: |
6 # | 6 # |
7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
10 # copyright notice, this list of conditions and the following | 10 # copyright notice, this list of conditions and the following |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 import urllib2 | 43 import urllib2 |
44 | 44 |
45 from git_recipes import GitRecipesMixin | 45 from git_recipes import GitRecipesMixin |
46 from git_recipes import GitFailedException | 46 from git_recipes import GitFailedException |
47 | 47 |
48 CHANGELOG_FILE = "ChangeLog" | 48 CHANGELOG_FILE = "ChangeLog" |
49 DAY_IN_SECONDS = 24 * 60 * 60 | 49 DAY_IN_SECONDS = 24 * 60 * 60 |
50 PUSH_MSG_GIT_RE = re.compile(r".* \(based on (?P<git_rev>[a-fA-F0-9]+)\)$") | 50 PUSH_MSG_GIT_RE = re.compile(r".* \(based on (?P<git_rev>[a-fA-F0-9]+)\)$") |
51 PUSH_MSG_NEW_RE = re.compile(r"^Version \d+\.\d+\.\d+$") | 51 PUSH_MSG_NEW_RE = re.compile(r"^Version \d+\.\d+\.\d+$") |
52 VERSION_FILE = os.path.join("include", "v8-version.h") | 52 VERSION_FILE = os.path.join("include", "v8-version.h") |
| 53 WATCHLISTS_FILE = "WATCHLISTS" |
53 | 54 |
54 # V8 base directory. | 55 # V8 base directory. |
55 V8_BASE = os.path.dirname( | 56 V8_BASE = os.path.dirname( |
56 os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | 57 os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) |
57 | 58 |
58 | 59 |
59 def TextToFile(text, file_name): | 60 def TextToFile(text, file_name): |
60 with open(file_name, "w") as f: | 61 with open(file_name, "w") as f: |
61 f.write(text) | 62 f.write(text) |
62 | 63 |
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
878 return 0 | 879 return 0 |
879 finally: | 880 finally: |
880 if options.json_output: | 881 if options.json_output: |
881 with open(options.json_output, "w") as f: | 882 with open(options.json_output, "w") as f: |
882 json.dump(self._state['json_output'], f) | 883 json.dump(self._state['json_output'], f) |
883 | 884 |
884 return 0 | 885 return 0 |
885 | 886 |
886 def Run(self, args=None): | 887 def Run(self, args=None): |
887 return self.RunSteps(self._Steps(), args) | 888 return self.RunSteps(self._Steps(), args) |
OLD | NEW |