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

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

Issue 227583002: Add V8 releases script. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix checking changed files at branch roots. Created 6 years, 8 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 | « no previous file | tools/push-to-trunk/git_recipes.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 21 matching lines...) Expand all
32 import json 32 import json
33 import os 33 import os
34 import re 34 import re
35 import subprocess 35 import subprocess
36 import sys 36 import sys
37 import textwrap 37 import textwrap
38 import time 38 import time
39 import urllib2 39 import urllib2
40 40
41 from git_recipes import GitRecipesMixin 41 from git_recipes import GitRecipesMixin
42 from git_recipes import GitFailedException
42 43
43 PERSISTFILE_BASENAME = "PERSISTFILE_BASENAME" 44 PERSISTFILE_BASENAME = "PERSISTFILE_BASENAME"
44 TEMP_BRANCH = "TEMP_BRANCH" 45 TEMP_BRANCH = "TEMP_BRANCH"
45 BRANCHNAME = "BRANCHNAME" 46 BRANCHNAME = "BRANCHNAME"
46 DOT_GIT_LOCATION = "DOT_GIT_LOCATION" 47 DOT_GIT_LOCATION = "DOT_GIT_LOCATION"
47 VERSION_FILE = "VERSION_FILE" 48 VERSION_FILE = "VERSION_FILE"
48 CHANGELOG_FILE = "CHANGELOG_FILE" 49 CHANGELOG_FILE = "CHANGELOG_FILE"
49 CHANGELOG_ENTRY_FILE = "CHANGELOG_ENTRY_FILE" 50 CHANGELOG_ENTRY_FILE = "CHANGELOG_ENTRY_FILE"
50 COMMITMSG_FILE = "COMMITMSG_FILE" 51 COMMITMSG_FILE = "COMMITMSG_FILE"
51 PATCH_FILE = "PATCH_FILE" 52 PATCH_FILE = "PATCH_FILE"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 def GetDate(self): 210 def GetDate(self):
210 return datetime.date.today().strftime("%Y-%m-%d") 211 return datetime.date.today().strftime("%Y-%m-%d")
211 212
212 DEFAULT_SIDE_EFFECT_HANDLER = SideEffectHandler() 213 DEFAULT_SIDE_EFFECT_HANDLER = SideEffectHandler()
213 214
214 215
215 class NoRetryException(Exception): 216 class NoRetryException(Exception):
216 pass 217 pass
217 218
218 219
219 class GitFailedException(Exception):
220 pass
221
222
223 class Step(GitRecipesMixin): 220 class Step(GitRecipesMixin):
224 def __init__(self, text, requires, number, config, state, options, handler): 221 def __init__(self, text, requires, number, config, state, options, handler):
225 self._text = text 222 self._text = text
226 self._requires = requires 223 self._requires = requires
227 self._number = number 224 self._number = number
228 self._config = config 225 self._config = config
229 self._state = state 226 self._state = state
230 self._options = options 227 self._options = options
231 self._side_effect_handler = handler 228 self._side_effect_handler = handler
232 assert self._number >= 0 229 assert self._number >= 0
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 for (number, step_class) in enumerate(step_classes): 601 for (number, step_class) in enumerate(step_classes):
605 steps.append(MakeStep(step_class, number, self._state, self._config, 602 steps.append(MakeStep(step_class, number, self._state, self._config,
606 options, self._side_effect_handler)) 603 options, self._side_effect_handler))
607 for step in steps[options.step:]: 604 for step in steps[options.step:]:
608 if step.Run(): 605 if step.Run():
609 return 1 606 return 1
610 return 0 607 return 0
611 608
612 def Run(self, args=None): 609 def Run(self, args=None):
613 return self.RunSteps(self._Steps(), args) 610 return self.RunSteps(self._Steps(), args)
OLDNEW
« no previous file with comments | « no previous file | tools/push-to-trunk/git_recipes.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698