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

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

Issue 710593003: Fix change log creation in push script. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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/push_to_trunk.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 27 matching lines...) Expand all
38 import subprocess 38 import subprocess
39 import sys 39 import sys
40 import textwrap 40 import textwrap
41 import time 41 import time
42 import urllib 42 import urllib
43 import urllib2 43 import urllib2
44 44
45 from git_recipes import GitRecipesMixin 45 from git_recipes import GitRecipesMixin
46 from git_recipes import GitFailedException 46 from git_recipes import GitFailedException
47 47
48 CHANGELOG_FILE = "ChangeLog"
48 VERSION_FILE = os.path.join("src", "version.cc") 49 VERSION_FILE = os.path.join("src", "version.cc")
49 50
50 # V8 base directory. 51 # V8 base directory.
51 V8_BASE = os.path.dirname( 52 V8_BASE = os.path.dirname(
52 os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) 53 os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
53 54
54 55
55 def TextToFile(text, file_name): 56 def TextToFile(text, file_name):
56 with open(file_name, "w") as f: 57 with open(file_name, "w") as f:
57 f.write(text) 58 f.write(text)
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 for (number, step_class) in enumerate([BootstrapStep] + step_classes): 943 for (number, step_class) in enumerate([BootstrapStep] + step_classes):
943 steps.append(MakeStep(step_class, number, self._state, self._config, 944 steps.append(MakeStep(step_class, number, self._state, self._config,
944 options, self._side_effect_handler)) 945 options, self._side_effect_handler))
945 for step in steps[options.step:]: 946 for step in steps[options.step:]:
946 if step.Run(): 947 if step.Run():
947 return 0 948 return 0
948 return 0 949 return 0
949 950
950 def Run(self, args=None): 951 def Run(self, args=None):
951 return self.RunSteps(self._Steps(), args) 952 return self.RunSteps(self._Steps(), args)
OLDNEW
« no previous file with comments | « no previous file | tools/push-to-trunk/push_to_trunk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698