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 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 * |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 self.GitCreateBranch("work-branch", cwd=cwd) | 71 self.GitCreateBranch("work-branch", cwd=cwd) |
72 | 72 |
73 | 73 |
74 class UploadCL(Step): | 74 class UploadCL(Step): |
75 MESSAGE = "Create and upload CL." | 75 MESSAGE = "Create and upload CL." |
76 | 76 |
77 def RunStep(self): | 77 def RunStep(self): |
78 cwd = self._options.chromium | 78 cwd = self._options.chromium |
79 # Patch DEPS file. | 79 # Patch DEPS file. |
80 if self.Command("roll-dep", "v8 %s" % self._options.roll, cwd=cwd) is None: | 80 if self.Command("roll-dep-svn", "v8 %s" % |
| 81 self._options.roll, cwd=cwd) is None: |
81 self.Die("Failed to create deps for %s" % self._options.roll) | 82 self.Die("Failed to create deps for %s" % self._options.roll) |
82 | 83 |
83 message = [] | 84 message = [] |
84 message.append("Update V8 to %s." % self["roll_title"].lower()) | 85 message.append("Update V8 to %s." % self["roll_title"].lower()) |
85 | 86 |
86 message.append( | 87 message.append( |
87 ROLL_SUMMARY % (self._options.last_roll[:8], self._options.roll[:8])) | 88 ROLL_SUMMARY % (self._options.last_roll[:8], self._options.roll[:8])) |
88 | 89 |
89 message.append(ISSUE_MSG) | 90 message.append(ISSUE_MSG) |
90 | 91 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 DetermineV8Sheriff, | 150 DetermineV8Sheriff, |
150 SwitchChromium, | 151 SwitchChromium, |
151 UpdateChromiumCheckout, | 152 UpdateChromiumCheckout, |
152 UploadCL, | 153 UploadCL, |
153 CleanUp, | 154 CleanUp, |
154 ] | 155 ] |
155 | 156 |
156 | 157 |
157 if __name__ == "__main__": # pragma: no cover | 158 if __name__ == "__main__": # pragma: no cover |
158 sys.exit(ChromiumRoll().Run()) | 159 sys.exit(ChromiumRoll().Run()) |
OLD | NEW |