| 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 * |
| 11 | 11 |
| 12 | 12 |
| 13 class Preparation(Step): | 13 class Preparation(Step): |
| 14 MESSAGE = "Preparation." | 14 MESSAGE = "Preparation." |
| 15 | 15 |
| 16 def RunStep(self): | 16 def RunStep(self): |
| 17 # Update v8 remote tracking branches. | 17 # Update v8 remote tracking branches. |
| 18 self.GitFetchOrigin() | 18 self.GitFetchOrigin() |
| 19 | 19 |
| 20 | 20 |
| 21 class DetectLastPush(Step): | 21 class DetectLastPush(Step): |
| 22 MESSAGE = "Detect commit ID of last push to trunk." | 22 MESSAGE = "Detect commit ID of last push to trunk." |
| 23 | 23 |
| 24 def RunStep(self): | 24 def RunStep(self): |
| 25 self["last_push"] = self._options.last_push or self.FindLastTrunkPush( | 25 self["last_push"] = self._options.last_push or self.FindLastTrunkPush( |
| 26 branch="origin/master", include_patches=True) | 26 branch="origin/candidates", include_patches=True) |
| 27 self["trunk_revision"] = self.GetCommitPositionNumber(self["last_push"]) | 27 self["trunk_revision"] = self.GetCommitPositionNumber(self["last_push"]) |
| 28 self["push_title"] = self.GitLog(n=1, format="%s", | 28 self["push_title"] = self.GitLog(n=1, format="%s", |
| 29 git_hash=self["last_push"]) | 29 git_hash=self["last_push"]) |
| 30 | 30 |
| 31 | 31 |
| 32 class SwitchChromium(Step): | 32 class SwitchChromium(Step): |
| 33 MESSAGE = "Switch to Chromium checkout." | 33 MESSAGE = "Switch to Chromium checkout." |
| 34 | 34 |
| 35 def RunStep(self): | 35 def RunStep(self): |
| 36 self["v8_path"] = os.getcwd() | 36 self["v8_path"] = os.getcwd() |
| (...skipping 110 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 |