| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Update Dartium DEPS automatically. | 3 # Update Dartium DEPS automatically. |
| 4 | 4 |
| 5 from datetime import datetime, timedelta | 5 from datetime import datetime, timedelta |
| 6 import optparse | 6 import optparse |
| 7 import os | 7 import os |
| 8 import re | 8 import re |
| 9 from subprocess import Popen, PIPE | 9 from subprocess import Popen, PIPE |
| 10 import sys | 10 import sys |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 # > ./dartium_tools/update_deps.py --target=integration | 34 # > ./dartium_tools/update_deps.py --target=integration |
| 35 # | 35 # |
| 36 # (f) Run periodical update: | 36 # (f) Run periodical update: |
| 37 # > while true; do ./dartium_tools/update_deps.py --force ; sleep 300 ; don
e | 37 # > while true; do ./dartium_tools/update_deps.py --force ; sleep 300 ; don
e |
| 38 | 38 |
| 39 ######################################################################## | 39 ######################################################################## |
| 40 # Repositories to auto-update | 40 # Repositories to auto-update |
| 41 ######################################################################## | 41 ######################################################################## |
| 42 | 42 |
| 43 BRANCH_CURRENT="dart/dartium" | 43 BRANCH_CURRENT="dart/dartium" |
| 44 BRANCH_NEXT="dart/dartium" | 44 BRANCH_NEXT="dart/2454_1" |
| 45 BRANCH_MULTIVM="dart/multivm" | 45 |
| 46 # (repo_name, deps_dir, repo_branch, prefix, repos, branch) |
| 46 | 47 |
| 47 TARGETS = { | 48 TARGETS = { |
| 48 'dartium': ( | 49 'dartium': ( |
| 49 'git@github.com:dart-lang/sdk.git', | 50 'git@github.com:dart-lang/sdk.git', |
| 50 'tools/deps/dartium.deps', | 51 'tools/deps/dartium.deps', |
| 51 'origin/master', | 52 'origin/master', |
| 52 'dartium', | 53 'dartium', |
| 53 # TODO(vsm): Reenable 'chromium' | 54 # TODO(vsm): Reenable 'chromium' |
| 54 ['webkit'], | 55 ['webkit'], |
| 55 BRANCH_CURRENT, | 56 BRANCH_CURRENT, |
| 56 ), | 57 ), |
| 57 'integration': ( | 58 'integration': ( |
| 58 # TODO(jacobr): what is the git repo for integration if any? | 59 # TODO(jacobr): what is the git repo for integration if any? |
| 59 'https://dart.googlecode.com/svn/branches/dartium_integration/deps/dartium.d
eps', | 60 'git@github.com:dart-lang/sdk.git', |
| 60 'tools/deps/dartium.deps', | 61 'tools/deps/dartium.deps', |
| 61 'origin/master', | 62 'origin/integration', |
| 62 'dartium', | 63 'dartium', |
| 63 # TODO(vsm): Reenable 'chromium' | 64 # TODO(vsm): Reenable 'chromium' |
| 64 ['webkit'], | 65 ['webkit'], |
| 65 BRANCH_NEXT, | 66 BRANCH_NEXT, |
| 66 ), | 67 ), |
| 67 } | 68 } |
| 68 | 69 |
| 69 # Each element in this map represents a repository to update. Entries | 70 # Each element in this map represents a repository to update. Entries |
| 70 # take the form: | 71 # take the form: |
| 71 # (repo_tag: (svn_url, view_url)) | 72 # (repo_tag: (svn_url, view_url)) |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 if not options.force: | 262 if not options.force: |
| 262 print "Ready to push; press Enter to continue or Control-C to abort..." | 263 print "Ready to push; press Enter to continue or Control-C to abort..." |
| 263 sys.stdin.readline() | 264 sys.stdin.readline() |
| 264 print run_cmd(['git', 'commit', '-F', 'commit_log.txt']) | 265 print run_cmd(['git', 'commit', '-F', 'commit_log.txt']) |
| 265 print run_cmd(['git', 'push', repo_branch_parts[0], repo_branch_parts[1]]) | 266 print run_cmd(['git', 'push', repo_branch_parts[0], repo_branch_parts[1]]) |
| 266 print "Done." | 267 print "Done." |
| 267 | 268 |
| 268 | 269 |
| 269 if '__main__' == __name__: | 270 if '__main__' == __name__: |
| 270 main() | 271 main() |
| OLD | NEW |