| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 message.append( | 148 message.append( |
| 149 ROLL_SUMMARY % (self["last_roll"][:8], self["roll"][:8])) | 149 ROLL_SUMMARY % (self["last_roll"][:8], self["roll"][:8])) |
| 150 | 150 |
| 151 message.append(ISSUE_MSG) | 151 message.append(ISSUE_MSG) |
| 152 | 152 |
| 153 message.append("TBR=%s" % self._options.reviewer) | 153 message.append("TBR=%s" % self._options.reviewer) |
| 154 self.GitCommit("\n\n".join(message), author=self._options.author, cwd=cwd) | 154 self.GitCommit("\n\n".join(message), author=self._options.author, cwd=cwd) |
| 155 if not self._options.dry_run: | 155 if not self._options.dry_run: |
| 156 self.GitUpload(author=self._options.author, | 156 self.GitUpload(author=self._options.author, |
| 157 force=True, | 157 force=True, |
| 158 bypass_hooks=True, |
| 158 cq=self._options.use_commit_queue, | 159 cq=self._options.use_commit_queue, |
| 159 cwd=cwd) | 160 cwd=cwd) |
| 160 print "CL uploaded." | 161 print "CL uploaded." |
| 161 else: | 162 else: |
| 162 print "Dry run - don't upload." | 163 print "Dry run - don't upload." |
| 163 | 164 |
| 164 self.GitCheckout("master", cwd=cwd) | 165 self.GitCheckout("master", cwd=cwd) |
| 165 self.GitDeleteBranch("work-branch", cwd=cwd) | 166 self.GitDeleteBranch("work-branch", cwd=cwd) |
| 166 | 167 |
| 167 class CleanUp(Step): | 168 class CleanUp(Step): |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 PrepareRollCandidate, | 220 PrepareRollCandidate, |
| 220 SwitchChromium, | 221 SwitchChromium, |
| 221 UpdateChromiumCheckout, | 222 UpdateChromiumCheckout, |
| 222 UploadCL, | 223 UploadCL, |
| 223 CleanUp, | 224 CleanUp, |
| 224 ] | 225 ] |
| 225 | 226 |
| 226 | 227 |
| 227 if __name__ == "__main__": # pragma: no cover | 228 if __name__ == "__main__": # pragma: no cover |
| 228 sys.exit(AutoRoll().Run()) | 229 sys.exit(AutoRoll().Run()) |
| OLD | NEW |