Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1319)

Side by Side Diff: tools/push-to-trunk/chromium_roll.py

Issue 511803002: Fix chromium update in auto-roller. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/push-to-trunk/test_scripts.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 67
68 class UpdateChromiumCheckout(Step): 68 class UpdateChromiumCheckout(Step):
69 MESSAGE = "Update the checkout and create a new branch." 69 MESSAGE = "Update the checkout and create a new branch."
70 REQUIRES = "chrome_path" 70 REQUIRES = "chrome_path"
71 71
72 def RunStep(self): 72 def RunStep(self):
73 os.chdir(self["chrome_path"]) 73 os.chdir(self["chrome_path"])
74 self.GitCheckout("master") 74 self.GitCheckout("master")
75 self._side_effect_handler.Command("gclient", "sync --nohooks") 75 self._side_effect_handler.Command("gclient", "sync --nohooks")
76 try:
77 # TODO(machenbach): Add cwd to git calls.
78 os.chdir(os.path.join(self["chrome_path"], "v8"))
79 self.GitFetchOrigin()
Ryan Tseng 2014/08/27 10:19:44 This is going to run into the same problem as befo
80 finally:
81 os.chdir(self["chrome_path"])
76 self.GitCreateBranch("v8-roll-%s" % self["trunk_revision"]) 82 self.GitCreateBranch("v8-roll-%s" % self["trunk_revision"])
77 83
78 84
79 class UploadCL(Step): 85 class UploadCL(Step):
80 MESSAGE = "Create and upload CL." 86 MESSAGE = "Create and upload CL."
81 REQUIRES = "chrome_path" 87 REQUIRES = "chrome_path"
82 88
83 def RunStep(self): 89 def RunStep(self):
84 os.chdir(self["chrome_path"]) 90 os.chdir(self["chrome_path"])
85 91
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 SwitchChromium, 175 SwitchChromium,
170 UpdateChromiumCheckout, 176 UpdateChromiumCheckout,
171 UploadCL, 177 UploadCL,
172 SwitchV8, 178 SwitchV8,
173 CleanUp, 179 CleanUp,
174 ] 180 ]
175 181
176 182
177 if __name__ == "__main__": # pragma: no cover 183 if __name__ == "__main__": # pragma: no cover
178 sys.exit(ChromiumRoll(CONFIG).Run()) 184 sys.exit(ChromiumRoll(CONFIG).Run())
OLDNEW
« no previous file with comments | « no previous file | tools/push-to-trunk/test_scripts.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698