| 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 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 import argparse | 22 import argparse |
| 23 import os | 23 import os |
| 24 import sys | 24 import sys |
| 25 | 25 |
| 26 from common_includes import * | 26 from common_includes import * |
| 27 | 27 |
| 28 VERSION_BRANCH = "auto-bump-up-version" | 28 VERSION_BRANCH = "auto-bump-up-version" |
| 29 | 29 |
| 30 | 30 |
| 31 #TODO(machenbach): Add vc interface that works on git mirror. |
| 31 class Preparation(Step): | 32 class Preparation(Step): |
| 32 MESSAGE = "Preparation." | 33 MESSAGE = "Preparation." |
| 33 | 34 |
| 34 def RunStep(self): | 35 def RunStep(self): |
| 35 # Check for a clean workdir. | 36 # Check for a clean workdir. |
| 36 if not self.GitIsWorkdirClean(): # pragma: no cover | 37 if not self.GitIsWorkdirClean(): # pragma: no cover |
| 37 # This is in case a developer runs this script on a dirty tree. | 38 # This is in case a developer runs this script on a dirty tree. |
| 38 self.GitStash() | 39 self.GitStash() |
| 39 | 40 |
| 40 self.GitCheckout("master") | 41 self.GitCheckout("master") |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 GetLKGRVersion, | 235 GetLKGRVersion, |
| 235 LKGRVersionUpToDateBailout, | 236 LKGRVersionUpToDateBailout, |
| 236 GetTrunkVersion, | 237 GetTrunkVersion, |
| 237 CalculateVersion, | 238 CalculateVersion, |
| 238 CheckTreeStatus, | 239 CheckTreeStatus, |
| 239 ChangeVersion, | 240 ChangeVersion, |
| 240 ] | 241 ] |
| 241 | 242 |
| 242 if __name__ == "__main__": # pragma: no cover | 243 if __name__ == "__main__": # pragma: no cover |
| 243 sys.exit(BumpUpVersion().Run()) | 244 sys.exit(BumpUpVersion().Run()) |
| OLD | NEW |