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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 if self._side_effect_handler.Command( | 79 if self._side_effect_handler.Command( |
80 "roll-dep", "v8 %s" % self["trunk_revision"]) is None: | 80 "roll-dep", "v8 %s" % self["trunk_revision"]) is None: |
81 self.Die("Failed to create deps for %s" % self["trunk_revision"]) | 81 self.Die("Failed to create deps for %s" % self["trunk_revision"]) |
82 | 82 |
83 commit_title = "Update V8 to %s." % self["push_title"].lower() | 83 commit_title = "Update V8 to %s." % self["push_title"].lower() |
84 sheriff = "" | 84 sheriff = "" |
85 if self["sheriff"]: | 85 if self["sheriff"]: |
86 sheriff = ("\n\nPlease reply to the V8 sheriff %s in case of problems." | 86 sheriff = ("\n\nPlease reply to the V8 sheriff %s in case of problems." |
87 % self["sheriff"]) | 87 % self["sheriff"]) |
88 self.GitCommit("%s%s\n\nTBR=%s" % | 88 self.GitCommit("%s%s\n\nTBR=%s" % |
89 (commit_title, sheriff, self._options.reviewer)) | 89 (commit_title, sheriff, self._options.reviewer), |
| 90 author=self._options.author) |
90 if not self._options.dry_run: | 91 if not self._options.dry_run: |
91 self.GitUpload(author=self._options.author, | 92 self.GitUpload(author=self._options.author, |
92 force=True, | 93 force=True, |
93 cq=self._options.use_commit_queue) | 94 cq=self._options.use_commit_queue) |
94 print "CL uploaded." | 95 print "CL uploaded." |
95 else: | 96 else: |
96 self.GitCheckout("master") | 97 self.GitCheckout("master") |
97 self.GitDeleteBranch("v8-roll-%s" % self["trunk_revision"]) | 98 self.GitDeleteBranch("v8-roll-%s" % self["trunk_revision"]) |
98 print "Dry run - don't upload." | 99 print "Dry run - don't upload." |
99 | 100 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 SwitchChromium, | 147 SwitchChromium, |
147 UpdateChromiumCheckout, | 148 UpdateChromiumCheckout, |
148 UploadCL, | 149 UploadCL, |
149 SwitchV8, | 150 SwitchV8, |
150 CleanUp, | 151 CleanUp, |
151 ] | 152 ] |
152 | 153 |
153 | 154 |
154 if __name__ == "__main__": # pragma: no cover | 155 if __name__ == "__main__": # pragma: no cover |
155 sys.exit(ChromiumRoll(CONFIG).Run()) | 156 sys.exit(ChromiumRoll(CONFIG).Run()) |
OLD | NEW |