| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2014 The Chromium 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 | 6 |
| 7 """Merge Skia into Android.""" | 7 """Merge Skia into Android.""" |
| 8 | 8 |
| 9 | 9 |
| 10 import os | 10 import os |
| 11 import sys | 11 import sys |
| 12 | 12 |
| 13 from build_step import BuildStep, BuildStepFailure, BuildStepWarning | 13 from build_step import BuildStep, BuildStepFailure, BuildStepWarning |
| 14 import skia_vars | 14 import skia_vars |
| 15 from sync_android import ANDROID_CHECKOUT_PATH, REPO, GitAuthenticate | 15 from sync_android import ANDROID_CHECKOUT_PATH, REPO, GitAuthenticate |
| 16 from utils.git_utils import GIT | 16 from py.utils.git_utils import GIT |
| 17 from utils import git_utils | 17 from py.utils import git_utils |
| 18 from utils import misc | 18 from py.utils import misc |
| 19 from utils import shell_utils | 19 from py.utils import shell_utils |
| 20 | 20 |
| 21 SKIA_REPO_URL = skia_vars.GetGlobalVariable('skia_git_url') | 21 SKIA_REPO_URL = skia_vars.GetGlobalVariable('skia_git_url') |
| 22 SKIA_REV_URL = skia_vars.GetGlobalVariable('revlink_tmpl') | 22 SKIA_REV_URL = skia_vars.GetGlobalVariable('revlink_tmpl') |
| 23 | 23 |
| 24 MASTER_SKIA_URL = ('https://googleplex-android-review.googlesource.com/' | 24 MASTER_SKIA_URL = ('https://googleplex-android-review.googlesource.com/' |
| 25 'platform/external/skia') | 25 'platform/external/skia') |
| 26 MASTER_SKIA_REFS = 'HEAD:refs/heads/master-skia' | 26 MASTER_SKIA_REFS = 'HEAD:refs/heads/master-skia' |
| 27 | 27 |
| 28 UPSTREAM_REMOTE_NAME = 'upstream' | 28 UPSTREAM_REMOTE_NAME = 'upstream' |
| 29 | 29 |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 RepoAbandon(LOCAL_BRANCH_NAME) | 182 RepoAbandon(LOCAL_BRANCH_NAME) |
| 183 raise BuildStepFailure('git push failed!') | 183 raise BuildStepFailure('git push failed!') |
| 184 | 184 |
| 185 # Our branch is no longer needed. Remove it. | 185 # Our branch is no longer needed. Remove it. |
| 186 shell_utils.run([REPO, 'sync', '-j32', '.']) | 186 shell_utils.run([REPO, 'sync', '-j32', '.']) |
| 187 shell_utils.run([REPO, 'prune', '.']) | 187 shell_utils.run([REPO, 'prune', '.']) |
| 188 | 188 |
| 189 | 189 |
| 190 if '__main__' == __name__: | 190 if '__main__' == __name__: |
| 191 sys.exit(BuildStep.RunBuildStep(MergeIntoAndroid)) | 191 sys.exit(BuildStep.RunBuildStep(MergeIntoAndroid)) |
| OLD | NEW |