| 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 | 208 |
| 209 def GetDate(self): | 209 def GetDate(self): |
| 210 return datetime.date.today().strftime("%Y-%m-%d") | 210 return datetime.date.today().strftime("%Y-%m-%d") |
| 211 | 211 |
| 212 DEFAULT_SIDE_EFFECT_HANDLER = SideEffectHandler() | 212 DEFAULT_SIDE_EFFECT_HANDLER = SideEffectHandler() |
| 213 | 213 |
| 214 | 214 |
| 215 class NoRetryException(Exception): | 215 class NoRetryException(Exception): |
| 216 pass | 216 pass |
| 217 | 217 |
| 218 |
| 218 class CommonOptions(object): | 219 class CommonOptions(object): |
| 219 def __init__(self, options, manual=True): | 220 def __init__(self, options, manual=True): |
| 220 self.requires_editor = True | 221 self.requires_editor = True |
| 221 self.wait_for_lgtm = True | 222 self.wait_for_lgtm = True |
| 222 self.s = options.s | 223 self.s = options.s |
| 223 self.force_readline_defaults = not manual | 224 self.force_readline_defaults = not manual |
| 224 self.force_upload = not manual | 225 self.force_upload = not manual |
| 225 self.manual = manual | 226 self.manual = manual |
| 226 | 227 |
| 227 | 228 |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 options, | 498 options, |
| 498 side_effect_handler=DEFAULT_SIDE_EFFECT_HANDLER): | 499 side_effect_handler=DEFAULT_SIDE_EFFECT_HANDLER): |
| 499 state = {} | 500 state = {} |
| 500 steps = [] | 501 steps = [] |
| 501 for (number, step_class) in enumerate(step_classes): | 502 for (number, step_class) in enumerate(step_classes): |
| 502 steps.append(MakeStep(step_class, number, state, config, | 503 steps.append(MakeStep(step_class, number, state, config, |
| 503 options, side_effect_handler)) | 504 options, side_effect_handler)) |
| 504 | 505 |
| 505 for step in steps[options.s:]: | 506 for step in steps[options.s:]: |
| 506 step.Run() | 507 step.Run() |
| OLD | NEW |