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

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

Issue 417973002: Fix automatic tagging. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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/test_scripts.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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 print "ERROR: Could not read response. Is your key valid?" 238 print "ERROR: Could not read response. Is your key valid?"
239 raise 239 raise
240 240
241 def Sleep(self, seconds): 241 def Sleep(self, seconds):
242 time.sleep(seconds) 242 time.sleep(seconds)
243 243
244 def GetDate(self): 244 def GetDate(self):
245 return datetime.date.today().strftime("%Y-%m-%d") 245 return datetime.date.today().strftime("%Y-%m-%d")
246 246
247 def GetUTCStamp(self): 247 def GetUTCStamp(self):
248 time.mktime(datetime.datetime.utcnow().timetuple()) 248 return time.mktime(datetime.datetime.utcnow().timetuple())
249 249
250 DEFAULT_SIDE_EFFECT_HANDLER = SideEffectHandler() 250 DEFAULT_SIDE_EFFECT_HANDLER = SideEffectHandler()
251 251
252 252
253 class NoRetryException(Exception): 253 class NoRetryException(Exception):
254 pass 254 pass
255 255
256 256
257 class Step(GitRecipesMixin): 257 class Step(GitRecipesMixin):
258 def __init__(self, text, requires, number, config, state, options, handler): 258 def __init__(self, text, requires, number, config, state, options, handler):
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 for (number, step_class) in enumerate(step_classes): 650 for (number, step_class) in enumerate(step_classes):
651 steps.append(MakeStep(step_class, number, self._state, self._config, 651 steps.append(MakeStep(step_class, number, self._state, self._config,
652 options, self._side_effect_handler)) 652 options, self._side_effect_handler))
653 for step in steps[options.step:]: 653 for step in steps[options.step:]:
654 if step.Run(): 654 if step.Run():
655 return 1 655 return 1
656 return 0 656 return 0
657 657
658 def Run(self, args=None): 658 def Run(self, args=None):
659 return self.RunSteps(self._Steps(), args) 659 return self.RunSteps(self._Steps(), args)
OLDNEW
« no previous file with comments | « tools/push-to-trunk/auto_tag.py ('k') | tools/push-to-trunk/test_scripts.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698