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 """ | 6 """ |
7 Script for auto-increasing the version on bleeding_edge. | 7 Script for auto-increasing the version on bleeding_edge. |
8 | 8 |
9 The script can be run regularly by a cron job. It will increase the build | 9 The script can be run regularly by a cron job. It will increase the build |
10 level of the version on bleeding_edge if: | 10 level of the version on bleeding_edge if: |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 192 |
193 def RunStep(self): | 193 def RunStep(self): |
194 self.GitCreateBranch(VERSION_BRANCH, "bleeding_edge") | 194 self.GitCreateBranch(VERSION_BRANCH, "bleeding_edge") |
195 | 195 |
196 self.SetVersion(self.Config(VERSION_FILE), "new_") | 196 self.SetVersion(self.Config(VERSION_FILE), "new_") |
197 | 197 |
198 try: | 198 try: |
199 self.GitCommit("[Auto-roll] Bump up version to %s\n\nTBR=%s" % | 199 self.GitCommit("[Auto-roll] Bump up version to %s\n\nTBR=%s" % |
200 (self["new_version"], self._options.author)) | 200 (self["new_version"], self._options.author)) |
201 self.GitUpload(author=self._options.author, | 201 self.GitUpload(author=self._options.author, |
202 force=self._options.force_upload) | 202 force=self._options.force_upload, |
| 203 bypass_hooks=True) |
203 self.GitDCommit() | 204 self.GitDCommit() |
204 print "Successfully changed the version." | 205 print "Successfully changed the version." |
205 finally: | 206 finally: |
206 # Clean up. | 207 # Clean up. |
207 self.GitCheckout("bleeding_edge") | 208 self.GitCheckout("bleeding_edge") |
208 self.DeleteBranch(VERSION_BRANCH) | 209 self.DeleteBranch(VERSION_BRANCH) |
209 | 210 |
210 | 211 |
211 class BumpUpVersion(ScriptsBase): | 212 class BumpUpVersion(ScriptsBase): |
212 def _PrepareOptions(self, parser): | 213 def _PrepareOptions(self, parser): |
(...skipping 18 matching lines...) Expand all Loading... |
231 GetLKGRVersion, | 232 GetLKGRVersion, |
232 LKGRVersionUpToDateBailout, | 233 LKGRVersionUpToDateBailout, |
233 GetTrunkVersion, | 234 GetTrunkVersion, |
234 CalculateVersion, | 235 CalculateVersion, |
235 CheckTreeStatus, | 236 CheckTreeStatus, |
236 ChangeVersion, | 237 ChangeVersion, |
237 ] | 238 ] |
238 | 239 |
239 if __name__ == "__main__": # pragma: no cover | 240 if __name__ == "__main__": # pragma: no cover |
240 sys.exit(BumpUpVersion(CONFIG).Run()) | 241 sys.exit(BumpUpVersion(CONFIG).Run()) |
OLD | NEW |