| 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 |
| 11 CONFIG = { | 11 CONFIG = { |
| 12 BRANCHNAME: "auto-tag-v8", | 12 BRANCHNAME: "auto-tag-v8", |
| 13 PERSISTFILE_BASENAME: "/tmp/v8-auto-tag-tempfile", | 13 PERSISTFILE_BASENAME: "/tmp/v8-auto-tag-tempfile", |
| 14 DOT_GIT_LOCATION: ".git", | |
| 15 VERSION_FILE: "src/version.cc", | 14 VERSION_FILE: "src/version.cc", |
| 16 } | 15 } |
| 17 | 16 |
| 18 | 17 |
| 19 class Preparation(Step): | 18 class Preparation(Step): |
| 20 MESSAGE = "Preparation." | 19 MESSAGE = "Preparation." |
| 21 | 20 |
| 22 def RunStep(self): | 21 def RunStep(self): |
| 23 self.CommonPrepare() | 22 self.CommonPrepare() |
| 24 self.PrepareBranch() | 23 self.PrepareBranch() |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 GetOldestUntaggedVersion, | 190 GetOldestUntaggedVersion, |
| 192 GetLKGRs, | 191 GetLKGRs, |
| 193 CalculateTagRevision, | 192 CalculateTagRevision, |
| 194 MakeTag, | 193 MakeTag, |
| 195 CleanUp, | 194 CleanUp, |
| 196 ] | 195 ] |
| 197 | 196 |
| 198 | 197 |
| 199 if __name__ == "__main__": # pragma: no cover | 198 if __name__ == "__main__": # pragma: no cover |
| 200 sys.exit(AutoTag(CONFIG).Run()) | 199 sys.exit(AutoTag(CONFIG).Run()) |
| OLD | NEW |