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

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

Issue 404093002: Fix automatic version update. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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/git_recipes.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 """ 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
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
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())
OLDNEW
« no previous file with comments | « no previous file | tools/push-to-trunk/git_recipes.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698