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 28 matching lines...) Loading... |
39 import sys | 39 import sys |
40 import textwrap | 40 import textwrap |
41 import time | 41 import time |
42 import urllib | 42 import urllib |
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 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]+)\)$") |
50 PUSH_MSG_NEW_RE = re.compile(r"^Version \d+\.\d+\.\d+$") | 51 PUSH_MSG_NEW_RE = re.compile(r"^Version \d+\.\d+\.\d+$") |
51 VERSION_FILE = os.path.join("include", "v8-version.h") | 52 VERSION_FILE = os.path.join("include", "v8-version.h") |
52 VERSION_RE = re.compile(r"^\d+\.\d+\.\d+(?:\.\d+)?$") | 53 VERSION_RE = re.compile(r"^\d+\.\d+\.\d+(?:\.\d+)?$") |
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 |
(...skipping 816 matching lines...) Loading... |
875 for (number, step_class) in enumerate([BootstrapStep] + step_classes): | 876 for (number, step_class) in enumerate([BootstrapStep] + step_classes): |
876 steps.append(MakeStep(step_class, number, self._state, self._config, | 877 steps.append(MakeStep(step_class, number, self._state, self._config, |
877 options, self._side_effect_handler)) | 878 options, self._side_effect_handler)) |
878 for step in steps[options.step:]: | 879 for step in steps[options.step:]: |
879 if step.Run(): | 880 if step.Run(): |
880 return 0 | 881 return 0 |
881 return 0 | 882 return 0 |
882 | 883 |
883 def Run(self, args=None): | 884 def Run(self, args=None): |
884 return self.RunSteps(self._Steps(), args) | 885 return self.RunSteps(self._Steps(), args) |
OLD | NEW |