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

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

Issue 102253002: Add fully automated mode to push-to-trunk script. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rename debug mode to manual mode. 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 Preparation, 89 Preparation,
90 FetchLatestRevision, 90 FetchLatestRevision,
91 FetchLKGR, 91 FetchLKGR,
92 PushToTrunk, 92 PushToTrunk,
93 ] 93 ]
94 RunScript(step_classes, config, options, side_effect_handler) 94 RunScript(step_classes, config, options, side_effect_handler)
95 95
96 96
97 def BuildOptions(): 97 def BuildOptions():
98 result = optparse.OptionParser() 98 result = optparse.OptionParser()
99 result.add_option("-f", "--force", dest="f",
100 help="Don't prompt the user.",
101 default=True, action="store_true")
99 result.add_option("-s", "--step", dest="s", 102 result.add_option("-s", "--step", dest="s",
100 help="Specify the step where to start work. Default: 0.", 103 help="Specify the step where to start work. Default: 0.",
101 default=0, type="int") 104 default=0, type="int")
102 return result 105 return result
103 106
104 107
105 def Main(): 108 def Main():
106 parser = BuildOptions() 109 parser = BuildOptions()
107 (options, args) = parser.parse_args() 110 (options, args) = parser.parse_args()
108 RunAutoRoll(CONFIG, options) 111 RunAutoRoll(CONFIG, options)
109 112
110 if __name__ == "__main__": 113 if __name__ == "__main__":
111 sys.exit(Main()) 114 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