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

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

Issue 607463002: Refactoring: Extract interface for VC in release scripts. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review. Created 6 years, 2 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 | « tools/push-to-trunk/auto_tag.py ('k') | tools/push-to-trunk/common_includes.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 10 matching lines...) Expand all
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
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())
OLDNEW
« no previous file with comments | « tools/push-to-trunk/auto_tag.py ('k') | tools/push-to-trunk/common_includes.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698