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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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()) |
OLD | NEW |