| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 the V8 project authors. All rights reserved. | 2 # Copyright 2014 the V8 project authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import argparse | 6 import argparse |
| 7 import sys | 7 import sys |
| 8 | 8 |
| 9 from common_includes import * | 9 from common_includes import * |
| 10 | 10 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 print "Tagging revision %s with %s" % (lkgr_svn, self["candidate_version"]) | 146 print "Tagging revision %s with %s" % (lkgr_svn, self["candidate_version"]) |
| 147 | 147 |
| 148 | 148 |
| 149 class MakeTag(Step): | 149 class MakeTag(Step): |
| 150 MESSAGE = "Tag the version." | 150 MESSAGE = "Tag the version." |
| 151 | 151 |
| 152 def RunStep(self): | 152 def RunStep(self): |
| 153 if not self._options.dry_run: | 153 if not self._options.dry_run: |
| 154 self.GitReset(self["lkgr"]) | 154 self.GitReset(self["lkgr"]) |
| 155 # FIXME(machenbach): Make this work with the git repo. | 155 # FIXME(machenbach): Make this work with the git repo. |
| 156 self.vc.Tag(self["candidate_version"], "svn/bleeding_edge") | 156 self.vc.Tag(self["candidate_version"], |
| 157 "svn/bleeding_edge", |
| 158 "This won't work!") |
| 157 | 159 |
| 158 | 160 |
| 159 class CleanUp(Step): | 161 class CleanUp(Step): |
| 160 MESSAGE = "Clean up." | 162 MESSAGE = "Clean up." |
| 161 | 163 |
| 162 def RunStep(self): | 164 def RunStep(self): |
| 163 self.CommonCleanup() | 165 self.CommonCleanup() |
| 164 | 166 |
| 165 | 167 |
| 166 class AutoTag(ScriptsBase): | 168 class AutoTag(ScriptsBase): |
| (...skipping 23 matching lines...) Expand all Loading... |
| 190 GetOldestUntaggedVersion, | 192 GetOldestUntaggedVersion, |
| 191 GetLKGRs, | 193 GetLKGRs, |
| 192 CalculateTagRevision, | 194 CalculateTagRevision, |
| 193 MakeTag, | 195 MakeTag, |
| 194 CleanUp, | 196 CleanUp, |
| 195 ] | 197 ] |
| 196 | 198 |
| 197 | 199 |
| 198 if __name__ == "__main__": # pragma: no cover | 200 if __name__ == "__main__": # pragma: no cover |
| 199 sys.exit(AutoTag().Run()) | 201 sys.exit(AutoTag().Run()) |
| OLD | NEW |