| 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 21 matching lines...) Expand all Loading... |
| 32 import re | 32 import re |
| 33 import sys | 33 import sys |
| 34 import urllib | 34 import urllib |
| 35 | 35 |
| 36 from common_includes import * | 36 from common_includes import * |
| 37 import push_to_trunk | 37 import push_to_trunk |
| 38 | 38 |
| 39 SETTINGS_LOCATION = "SETTINGS_LOCATION" | 39 SETTINGS_LOCATION = "SETTINGS_LOCATION" |
| 40 | 40 |
| 41 CONFIG = { | 41 CONFIG = { |
| 42 PERSISTFILE_BASENAME: "/tmp/v8-auto-roll-tempfile", | 42 PERSISTFILE_BASENAME: "/tmp/v8-auto-push-tempfile", |
| 43 DOT_GIT_LOCATION: ".git", | 43 DOT_GIT_LOCATION: ".git", |
| 44 SETTINGS_LOCATION: "~/.auto-roll", | 44 SETTINGS_LOCATION: "~/.auto-roll", |
| 45 } | 45 } |
| 46 | 46 |
| 47 PUSH_MESSAGE_RE = re.compile(r".* \(based on bleeding_edge revision r(\d+)\)$") | 47 PUSH_MESSAGE_RE = re.compile(r".* \(based on bleeding_edge revision r(\d+)\)$") |
| 48 | 48 |
| 49 | 49 |
| 50 class Preparation(Step): | 50 class Preparation(Step): |
| 51 MESSAGE = "Preparation." | 51 MESSAGE = "Preparation." |
| 52 | 52 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 CheckAutoPushSettings, | 147 CheckAutoPushSettings, |
| 148 CheckTreeStatus, | 148 CheckTreeStatus, |
| 149 FetchLKGR, | 149 FetchLKGR, |
| 150 CheckLastPush, | 150 CheckLastPush, |
| 151 PushToTrunk, | 151 PushToTrunk, |
| 152 ] | 152 ] |
| 153 | 153 |
| 154 | 154 |
| 155 if __name__ == "__main__": # pragma: no cover | 155 if __name__ == "__main__": # pragma: no cover |
| 156 sys.exit(AutoPush(CONFIG).Run()) | 156 sys.exit(AutoPush(CONFIG).Run()) |
| OLD | NEW |