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

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

Issue 404093002: Fix automatic version update. (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/git_recipes.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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 # current change log preparation won't make much sense. 123 # current change log preparation won't make much sense.
124 self["last_push_bleeding_edge"] = last_push_bleeding_edge 124 self["last_push_bleeding_edge"] = last_push_bleeding_edge
125 125
126 126
127 # TODO(machenbach): Code similarities with bump_up_version.py. Merge after 127 # TODO(machenbach): Code similarities with bump_up_version.py. Merge after
128 # turning this script into a pure git script. 128 # turning this script into a pure git script.
129 class GetCurrentBleedingEdgeVersion(Step): 129 class GetCurrentBleedingEdgeVersion(Step):
130 MESSAGE = "Get latest bleeding edge version." 130 MESSAGE = "Get latest bleeding edge version."
131 131
132 def RunStep(self): 132 def RunStep(self):
133 self.GitCheckoutFile(self.Config(VERSION_FILE), "master") 133 self.GitCheckoutFile(self.Config(VERSION_FILE), "svn/bleeding_edge")
134 134
135 # Store latest version. 135 # Store latest version.
136 self.ReadAndPersistVersion("latest_") 136 self.ReadAndPersistVersion("latest_")
137 self["latest_version"] = self.ArrayToVersion("latest_") 137 self["latest_version"] = self.ArrayToVersion("latest_")
138 print "Bleeding edge version: %s" % self["latest_version"] 138 print "Bleeding edge version: %s" % self["latest_version"]
139 139
140 140
141 class IncrementVersion(Step): 141 class IncrementVersion(Step):
142 MESSAGE = "Increment version number." 142 MESSAGE = "Increment version number."
143 143
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 CommitTrunk, 458 CommitTrunk,
459 SanityCheck, 459 SanityCheck,
460 CommitSVN, 460 CommitSVN,
461 TagRevision, 461 TagRevision,
462 CleanUp, 462 CleanUp,
463 ] 463 ]
464 464
465 465
466 if __name__ == "__main__": # pragma: no cover 466 if __name__ == "__main__": # pragma: no cover
467 sys.exit(PushToTrunk(CONFIG).Run()) 467 sys.exit(PushToTrunk(CONFIG).Run())
OLDNEW
« no previous file with comments | « tools/push-to-trunk/git_recipes.py ('k') | tools/push-to-trunk/test_scripts.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698