| OLD | NEW |
| 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 Loading... |
| 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()) |
| OLD | NEW |