| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 self.GitCreateBranch("v8-roll-%s" % self["trunk_revision"], | 59 self.GitCreateBranch("v8-roll-%s" % self["trunk_revision"], |
| 60 cwd=self._options.chromium) | 60 cwd=self._options.chromium) |
| 61 | 61 |
| 62 | 62 |
| 63 class UploadCL(Step): | 63 class UploadCL(Step): |
| 64 MESSAGE = "Create and upload CL." | 64 MESSAGE = "Create and upload CL." |
| 65 | 65 |
| 66 def RunStep(self): | 66 def RunStep(self): |
| 67 # Patch DEPS file. | 67 # Patch DEPS file. |
| 68 if self.Command( | 68 if self.Command( |
| 69 "roll-dep", "v8 %s" % self["trunk_revision"], | 69 "roll-dep", "v8 %s" % self["last_push"], |
| 70 cwd=self._options.chromium) is None: | 70 cwd=self._options.chromium) is None: |
| 71 self.Die("Failed to create deps for %s" % self["trunk_revision"]) | 71 self.Die("Failed to create deps for %s" % self["trunk_revision"]) |
| 72 | 72 |
| 73 commit_title = "Update V8 to %s." % self["push_title"].lower() | 73 commit_title = "Update V8 to %s." % self["push_title"].lower() |
| 74 sheriff = "" | 74 sheriff = "" |
| 75 if self["sheriff"]: | 75 if self["sheriff"]: |
| 76 sheriff = ("\n\nPlease reply to the V8 sheriff %s in case of problems." | 76 sheriff = ("\n\nPlease reply to the V8 sheriff %s in case of problems." |
| 77 % self["sheriff"]) | 77 % self["sheriff"]) |
| 78 self.GitCommit("%s%s\n\nTBR=%s" % | 78 self.GitCommit("%s%s\n\nTBR=%s" % |
| 79 (commit_title, sheriff, self._options.reviewer), | 79 (commit_title, sheriff, self._options.reviewer), |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 SwitchChromium, | 147 SwitchChromium, |
| 148 UpdateChromiumCheckout, | 148 UpdateChromiumCheckout, |
| 149 UploadCL, | 149 UploadCL, |
| 150 SwitchV8, | 150 SwitchV8, |
| 151 CleanUp, | 151 CleanUp, |
| 152 ] | 152 ] |
| 153 | 153 |
| 154 | 154 |
| 155 if __name__ == "__main__": # pragma: no cover | 155 if __name__ == "__main__": # pragma: no cover |
| 156 sys.exit(ChromiumRoll().Run()) | 156 sys.exit(ChromiumRoll().Run()) |
| OLD | NEW |