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

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

Issue 114203002: Add named options to push-to-trunk script. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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/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 2013 the V8 project authors. All rights reserved. 2 # Copyright 2013 the V8 project authors. All rights reserved.
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following 10 # copyright notice, this list of conditions and the following
(...skipping 20 matching lines...) Expand all
31 import sys 31 import sys
32 32
33 from common_includes import * 33 from common_includes import *
34 34
35 CONFIG = { 35 CONFIG = {
36 PERSISTFILE_BASENAME: "/tmp/v8-auto-roll-tempfile", 36 PERSISTFILE_BASENAME: "/tmp/v8-auto-roll-tempfile",
37 DOT_GIT_LOCATION: ".git", 37 DOT_GIT_LOCATION: ".git",
38 } 38 }
39 39
40 40
41 class AutoRollOptions(CommonOptions):
42 def __init__(self, options):
43 super(AutoRollOptions, self).__init__(options)
44 self.requires_editor = False
45
46
41 class Preparation(Step): 47 class Preparation(Step):
42 MESSAGE = "Preparation." 48 MESSAGE = "Preparation."
43 49
44 def RunStep(self): 50 def RunStep(self):
45 self.InitialEnvironmentChecks() 51 self.InitialEnvironmentChecks()
46 self.CommonPrepare() 52 self.CommonPrepare()
47 53
48 54
49 class FetchLatestRevision(Step): 55 class FetchLatestRevision(Step):
50 MESSAGE = "Fetching latest V8 revision." 56 MESSAGE = "Fetching latest V8 revision."
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 return result 136 return result
131 137
132 138
133 def Main(): 139 def Main():
134 parser = BuildOptions() 140 parser = BuildOptions()
135 (options, args) = parser.parse_args() 141 (options, args) = parser.parse_args()
136 if not options.c or not options.r: 142 if not options.c or not options.r:
137 print "You need to specify the chromium src location and a reviewer." 143 print "You need to specify the chromium src location and a reviewer."
138 parser.print_help() 144 parser.print_help()
139 return 1 145 return 1
140 RunAutoRoll(CONFIG, options) 146 RunAutoRoll(CONFIG, AutoRollOptions(options))
141 147
142 if __name__ == "__main__": 148 if __name__ == "__main__":
143 sys.exit(Main()) 149 sys.exit(Main())
OLDNEW
« no previous file with comments | « no previous file | tools/push-to-trunk/common_includes.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698