OLD | NEW |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
Ryan Tseng
2014/08/26 11:43:23
I feel like this file can be easily rewritten as a
| |
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 import argparse | 6 import argparse |
7 import os | 7 import os |
8 import sys | 8 import sys |
9 | 9 |
10 from common_includes import * | 10 from common_includes import * |
11 | 11 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
65 self.Die("DEPS file not present.") | 65 self.Die("DEPS file not present.") |
66 | 66 |
67 | 67 |
68 class UpdateChromiumCheckout(Step): | 68 class UpdateChromiumCheckout(Step): |
69 MESSAGE = "Update the checkout and create a new branch." | 69 MESSAGE = "Update the checkout and create a new branch." |
70 REQUIRES = "chrome_path" | 70 REQUIRES = "chrome_path" |
71 | 71 |
72 def RunStep(self): | 72 def RunStep(self): |
73 os.chdir(self["chrome_path"]) | 73 os.chdir(self["chrome_path"]) |
74 self.GitCheckout("master") | 74 self.GitCheckout("master") |
75 self.GitPull() | 75 self._side_effect_handler.Command("gclient", "sync --no-hooks") |
76 self.GitCreateBranch("v8-roll-%s" % self["trunk_revision"]) | 76 self.GitCreateBranch("v8-roll-%s" % self["trunk_revision"]) |
77 | 77 |
78 | 78 |
79 class UploadCL(Step): | 79 class UploadCL(Step): |
80 MESSAGE = "Create and upload CL." | 80 MESSAGE = "Create and upload CL." |
81 REQUIRES = "chrome_path" | 81 REQUIRES = "chrome_path" |
82 | 82 |
83 def RunStep(self): | 83 def RunStep(self): |
84 os.chdir(self["chrome_path"]) | 84 os.chdir(self["chrome_path"]) |
85 | 85 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
169 SwitchChromium, | 169 SwitchChromium, |
170 UpdateChromiumCheckout, | 170 UpdateChromiumCheckout, |
171 UploadCL, | 171 UploadCL, |
172 SwitchV8, | 172 SwitchV8, |
173 CleanUp, | 173 CleanUp, |
174 ] | 174 ] |
175 | 175 |
176 | 176 |
177 if __name__ == "__main__": # pragma: no cover | 177 if __name__ == "__main__": # pragma: no cover |
178 sys.exit(ChromiumRoll(CONFIG).Run()) | 178 sys.exit(ChromiumRoll(CONFIG).Run()) |
OLD | NEW |