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 12 matching lines...) Expand all Loading... |
23 MESSAGE = "Preparation." | 23 MESSAGE = "Preparation." |
24 | 24 |
25 def RunStep(self): | 25 def RunStep(self): |
26 self.CommonPrepare() | 26 self.CommonPrepare() |
27 | 27 |
28 | 28 |
29 class DetectLastPush(Step): | 29 class DetectLastPush(Step): |
30 MESSAGE = "Detect commit ID of last push to trunk." | 30 MESSAGE = "Detect commit ID of last push to trunk." |
31 | 31 |
32 def RunStep(self): | 32 def RunStep(self): |
33 self["last_push"] = self._options.last_push or self.FindLastTrunkPush() | 33 self["last_push"] = self._options.last_push or self.FindLastTrunkPush( |
| 34 include_patches=True) |
34 self["trunk_revision"] = self.GitSVNFindSVNRev(self["last_push"]) | 35 self["trunk_revision"] = self.GitSVNFindSVNRev(self["last_push"]) |
35 self["push_title"] = self.GitLog(n=1, format="%s", | 36 self["push_title"] = self.GitLog(n=1, format="%s", |
36 git_hash=self["last_push"]) | 37 git_hash=self["last_push"]) |
37 | 38 |
38 | 39 |
39 class CheckChromium(Step): | 40 class CheckChromium(Step): |
40 MESSAGE = "Ask for chromium checkout." | 41 MESSAGE = "Ask for chromium checkout." |
41 | 42 |
42 def Run(self): | 43 def Run(self): |
43 self["chrome_path"] = self._options.chromium | 44 self["chrome_path"] = self._options.chromium |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 SwitchChromium, | 162 SwitchChromium, |
162 UpdateChromiumCheckout, | 163 UpdateChromiumCheckout, |
163 UploadCL, | 164 UploadCL, |
164 SwitchV8, | 165 SwitchV8, |
165 CleanUp, | 166 CleanUp, |
166 ] | 167 ] |
167 | 168 |
168 | 169 |
169 if __name__ == "__main__": # pragma: no cover | 170 if __name__ == "__main__": # pragma: no cover |
170 sys.exit(ChromiumRoll(CONFIG).Run()) | 171 sys.exit(ChromiumRoll(CONFIG).Run()) |
OLD | NEW |