libv8 5.7.492.65.1 → 5.9.211.38.0beta0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +8 -2
- data/CHANGELOG.md +4 -0
- data/README.md +4 -3
- data/Rakefile +27 -10
- data/ext/libv8/builder.rb +4 -0
- data/lib/libv8/version.rb +1 -1
- data/libv8.gemspec +1 -1
- data/patches/0001-Build-a-standalone-static-library.patch +5 -5
- data/patches/0002-Don-t-compile-unnecessary-stuff.patch +20 -24
- data/patches/0003-Use-the-fPIC-flag-for-the-static-library.patch +5 -5
- data/patches/0004-Do-not-embed-debug-symbols-in-macOS-libraries.patch +5 -5
- data/patches/0005-Fix-GCC-7-build-errors.patch +147 -0
- data/scaleway.png +0 -0
- data/vendor/depot_tools/.gitattributes +52 -0
- data/vendor/depot_tools/.gitignore +10 -0
- data/vendor/depot_tools/README.md +7 -3
- data/vendor/depot_tools/apply_issue.bat +4 -3
- data/vendor/depot_tools/apply_issue.py +0 -10
- data/vendor/depot_tools/autoninja +12 -0
- data/vendor/depot_tools/autoninja.bat +9 -0
- data/vendor/depot_tools/autoninja.py +70 -0
- data/vendor/depot_tools/bootstrap/win/README.md +108 -26
- data/vendor/depot_tools/bootstrap/win/git-bash.template.sh +3 -3
- data/vendor/depot_tools/bootstrap/win/git.template.bat +2 -2
- data/vendor/depot_tools/bootstrap/win/manifest.txt +18 -0
- data/vendor/depot_tools/bootstrap/win/manifest_bleeding_edge.txt +18 -0
- data/vendor/depot_tools/bootstrap/win/python27.new.bat +49 -0
- data/vendor/depot_tools/bootstrap/win/win_tools.bat +55 -59
- data/vendor/depot_tools/bootstrap/win/win_tools.py +335 -0
- data/vendor/depot_tools/cipd +16 -2
- data/vendor/depot_tools/cipd.bat +20 -2
- data/vendor/depot_tools/cipd.ps1 +36 -22
- data/vendor/depot_tools/cipd_bin_setup.bat +6 -0
- data/vendor/depot_tools/cipd_bin_setup.sh +10 -0
- data/vendor/depot_tools/cipd_client_version +1 -1
- data/vendor/depot_tools/cipd_manifest.txt +9 -0
- data/vendor/depot_tools/cit.bat +12 -11
- data/vendor/depot_tools/clang-format.bat +4 -3
- data/vendor/depot_tools/clang_format_merge_driver.bat +12 -11
- data/vendor/depot_tools/commit_queue.bat +4 -3
- data/vendor/depot_tools/cpplint.bat +9 -3
- data/vendor/depot_tools/cpplint.py +3 -3
- data/vendor/depot_tools/depot-tools-auth.bat +4 -3
- data/vendor/depot_tools/download_from_google_storage.bat +5 -3
- data/vendor/depot_tools/download_from_google_storage.py +6 -1
- data/vendor/depot_tools/fetch.bat +5 -4
- data/vendor/depot_tools/fetch.py +4 -5
- data/vendor/depot_tools/gclient-new-workdir.py +82 -46
- data/vendor/depot_tools/gclient.bat +5 -4
- data/vendor/depot_tools/gclient.py +713 -319
- data/vendor/depot_tools/gclient_eval.py +284 -0
- data/vendor/depot_tools/gclient_utils.py +70 -4
- data/vendor/depot_tools/gerrit_client.py +26 -1
- data/vendor/depot_tools/gerrit_util.py +120 -127
- data/vendor/depot_tools/git-crrev-parse +1 -0
- data/vendor/depot_tools/git-gs +1 -1
- data/vendor/depot_tools/git_cl.py +731 -415
- data/vendor/depot_tools/git_common.py +23 -3
- data/vendor/depot_tools/git_drover.py +10 -1
- data/vendor/depot_tools/git_footers.py +62 -22
- data/vendor/depot_tools/git_hyper_blame.py +3 -2
- data/vendor/depot_tools/git_map.py +30 -3
- data/vendor/depot_tools/git_map_branches.py +18 -4
- data/vendor/depot_tools/git_number.py +8 -2
- data/vendor/depot_tools/git_retry.py +21 -0
- data/vendor/depot_tools/gn.bat +4 -3
- data/vendor/depot_tools/infra/config/cq.cfg +1 -5
- data/vendor/depot_tools/infra/config/recipes.cfg +18 -16
- data/vendor/depot_tools/led +12 -0
- data/vendor/depot_tools/led.bat +7 -0
- data/vendor/depot_tools/man/html/git-cl.html +9 -1
- data/vendor/depot_tools/man/html/git-drover.html +22 -18
- data/vendor/depot_tools/man/man1/git-cl.1 +8 -3
- data/vendor/depot_tools/man/man1/git-drover.1 +22 -20
- data/vendor/depot_tools/man/src/git-cl.txt +3 -0
- data/vendor/depot_tools/man/src/git-drover.txt +8 -0
- data/vendor/depot_tools/my_activity.py +8 -5
- data/vendor/depot_tools/owners.py +103 -11
- data/vendor/depot_tools/owners_finder.py +14 -2
- data/vendor/depot_tools/presubmit_canned_checks.py +25 -67
- data/vendor/depot_tools/presubmit_support.py +87 -35
- data/vendor/depot_tools/recipes/OWNERS +2 -0
- data/vendor/depot_tools/recipes/README.recipes.md +842 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/__init__.py +5 -3
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/api.py +181 -60
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/{example.expected → examples/full.expected}/apply_gerrit_ref.json +4 -2
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/basic.json +82 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/basic_with_branch_heads.json +149 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/buildbot.json +82 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/clobber.json +149 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/deprecated_got_revision_mapping.json +122 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/gerrit_no_rebase_patch_ref.json +149 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/gerrit_no_reset.json +149 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/no_shallow.json +149 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/reset_root_solution_revision.json +148 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange.json +150 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/{example.expected → examples/full.expected}/trychange_oauth2.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange_oauth2_buildbot.json +152 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange_oauth2_json.json +150 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange_oauth2_json_win.json +150 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob.json +156 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail.json +91 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch.json +118 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch_download.json +118 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_angle.json +202 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_angle_deprecated.json +158 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_feature_branch.json +196 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_v8.json +202 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_v8_feature_branch.json +202 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8.json +162 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8_head_by_default.json +162 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/with_tags.json +149 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/{example.py → examples/full.py} +46 -8
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/resources/bot_update.py +139 -133
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/test_api.py +25 -13
- data/vendor/depot_tools/recipes/recipe_modules/cipd/api.py +40 -9
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/basic.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/basic_pkg.json +1 -1
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/describe-failed.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/describe-many-instances.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/mac64.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/pkg_bad_file.json +1 -1
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/pkg_bad_mode.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/pkg_bad_verfile.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/win64.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.py → examples/full.py} +1 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/junk arch.json +7 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/junk bits.json +7 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_arm_32.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_arm_64.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_intel_32.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_intel_64.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_mips_64.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/mac_intel_64.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/win_intel_32.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/win_intel_64.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.py +59 -0
- data/vendor/depot_tools/recipes/recipe_modules/depot_tools/api.py +5 -0
- data/vendor/depot_tools/recipes/recipe_modules/depot_tools/{example.expected → examples/full.expected}/basic.json +7 -0
- data/vendor/depot_tools/recipes/recipe_modules/depot_tools/{example.expected → examples/full.expected}/win.json +7 -0
- data/vendor/depot_tools/recipes/recipe_modules/depot_tools/{example.py → examples/full.py} +2 -0
- data/vendor/depot_tools/recipes/recipe_modules/gclient/__init__.py +1 -4
- data/vendor/depot_tools/recipes/recipe_modules/gclient/api.py +28 -14
- data/vendor/depot_tools/recipes/recipe_modules/gclient/config.py +10 -235
- data/vendor/depot_tools/recipes/recipe_modules/gclient/{example.expected → examples/full.expected}/basic.json +9 -9
- data/vendor/depot_tools/recipes/recipe_modules/gclient/{example.expected → examples/full.expected}/buildbot.json +9 -9
- data/vendor/depot_tools/recipes/recipe_modules/gclient/{example.expected → examples/full.expected}/revision.json +9 -9
- data/vendor/depot_tools/recipes/recipe_modules/gclient/{example.expected → examples/full.expected}/tryserver.json +9 -9
- data/vendor/depot_tools/recipes/recipe_modules/gclient/{example.py → examples/full.py} +5 -21
- data/vendor/depot_tools/recipes/recipe_modules/gclient/tests/patch_project.py +45 -0
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/__init__.py +1 -0
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/api.py +97 -2
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/examples/full.expected/basic.json +283 -0
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/{example.py → examples/full.py} +31 -2
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/test_api.py +30 -1
- data/vendor/depot_tools/recipes/recipe_modules/git/__init__.py +1 -4
- data/vendor/depot_tools/recipes/recipe_modules/git/api.py +7 -35
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic_branch.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic_file_name.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic_hash.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic_ref.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic_submodule_update_force.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/can_fail_build.json +1 -1
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/cannot_fail_build.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/cat-file_test.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/count-objects_delta.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/count-objects_failed.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/count-objects_with_bad_output.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/count-objects_with_bad_output_fails_build.json +1 -1
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/curl_trace_file.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/git-cache-checkout.json +6 -6
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/platform_win.json +223 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/rebase_failed.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/remote_not_origin.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/set_got_revision.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.py → examples/full.py} +2 -1
- data/vendor/depot_tools/recipes/recipe_modules/git/resources/git_setup.py +12 -21
- data/vendor/depot_tools/recipes/recipe_modules/git_cl/__init__.py +1 -4
- data/vendor/depot_tools/recipes/recipe_modules/git_cl/api.py +13 -11
- data/vendor/depot_tools/recipes/recipe_modules/git_cl/{example.expected → examples/full.expected}/basic.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/git_cl/{example.py → examples/full.py} +4 -2
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/OWNERS +3 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/__init__.py +7 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/api.py +135 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/examples/full.expected/basic.json +537 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/examples/full.py +61 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/resources/gerrit_client.py +192 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/test_api.py +95 -0
- data/vendor/depot_tools/recipes/recipe_modules/gsutil/{example.expected → examples/full.expected}/basic.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/gsutil/{example.py → examples/full.py} +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/__init__.py +0 -3
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/basic.json +3 -2
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/paths_buildbot_linux.json +3 -2
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/paths_buildbot_mac.json +3 -2
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/paths_buildbot_win.json +3 -2
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/paths_generic_linux.json +3 -2
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/paths_generic_mac.json +3 -2
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_generic_win.json +16 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_kitchen_linux.json +16 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_kitchen_mac.json +16 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_kitchen_win.json +16 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.py → examples/full.py} +2 -1
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/path_config.py +12 -3
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/__init__.py +1 -0
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/api.py +2 -2
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/{example.expected → examples/full.expected}/basic.json +1 -1
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/{example.py → examples/full.py} +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/rietveld/__init__.py +0 -4
- data/vendor/depot_tools/recipes/recipe_modules/rietveld/{example.expected → examples/full.expected}/basic.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/rietveld/{example.expected → examples/full.expected}/buildbot.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/rietveld/examples/full.expected/no_auth.json +27 -0
- data/vendor/depot_tools/recipes/recipe_modules/rietveld/{example.py → examples/full.py} +9 -1
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/__init__.py +3 -5
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/api.py +21 -96
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/basic_tags.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/set_failure_hash_with_no_steps.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_gerrit_patch.json +56 -0
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected/with_gerrit_patch_deprecated.json → examples/full.expected/with_git_patch.json} +2 -2
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected/with_gerrit_patch.json → examples/full.expected/with_git_patch_luci.json} +2 -2
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/with_rietveld_patch.json +0 -20
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/with_rietveld_patch_new.json +0 -20
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/with_wrong_patch.json +1 -13
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/with_wrong_patch_new.json +1 -13
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.py → examples/full.py} +3 -17
- data/vendor/depot_tools/recipes/recipes.py +141 -96
- data/vendor/depot_tools/rietveld.py +8 -1
- data/vendor/depot_tools/roll-dep-svn.bat +12 -10
- data/vendor/depot_tools/roll-dep.bat +5 -3
- data/vendor/depot_tools/scm.py +8 -1
- data/vendor/depot_tools/setup_color.py +0 -0
- data/vendor/depot_tools/split_cl.py +193 -0
- data/vendor/depot_tools/third_party/schema/.editorconfig +15 -0
- data/vendor/depot_tools/third_party/schema/.gitignore +174 -0
- data/vendor/depot_tools/third_party/schema/.travis.yml +37 -0
- data/vendor/depot_tools/third_party/schema/LICENSE-MIT +19 -0
- data/vendor/depot_tools/third_party/schema/MANIFEST.in +1 -0
- data/vendor/depot_tools/third_party/schema/README.chromium +12 -0
- data/vendor/depot_tools/third_party/schema/README.rst +382 -0
- data/vendor/depot_tools/third_party/schema/__init__.py +1 -0
- data/vendor/depot_tools/third_party/schema/schema.py +338 -0
- data/vendor/depot_tools/third_party/schema/setup.cfg +5 -0
- data/vendor/depot_tools/third_party/schema/setup.py +30 -0
- data/vendor/depot_tools/third_party/schema/test_schema.py +556 -0
- data/vendor/depot_tools/third_party/schema/tox.ini +33 -0
- data/vendor/depot_tools/third_party/upload.py +4 -0
- data/vendor/depot_tools/update_depot_tools +4 -16
- data/vendor/depot_tools/update_depot_tools.bat +4 -17
- data/vendor/depot_tools/update_depot_tools_toggle.py +38 -0
- data/vendor/depot_tools/vpython +12 -0
- data/vendor/depot_tools/vpython.bat +7 -0
- data/vendor/depot_tools/win_toolchain/get_toolchain_if_necessary.py +17 -5
- data/vendor/depot_tools/win_toolchain/package_from_installed.py +63 -33
- metadata +161 -113
- data/vendor/depot_tools/bootstrap/gclient.bat +0 -22
- data/vendor/depot_tools/bootstrap/win/get_file.js +0 -119
- data/vendor/depot_tools/bootstrap/win/git_bootstrap.py +0 -193
- data/vendor/depot_tools/bootstrap/win/git_version.txt +0 -1
- data/vendor/depot_tools/bootstrap/win/git_version_bleeding_edge.txt +0 -1
- data/vendor/depot_tools/bootstrap/win/python276.new.bat +0 -8
- data/vendor/depot_tools/bootstrap/win/svn.new.bat +0 -4
- data/vendor/depot_tools/bootstrap/win/svnversion.new.bat +0 -4
- data/vendor/depot_tools/bootstrap/win/unzip.js +0 -91
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/basic.json +0 -53
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/basic_output_manifest.json +0 -60
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/basic_with_branch_heads.json +0 -54
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/buildbot.json +0 -53
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/clobber.json +0 -54
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/gerrit_no_rebase_patch_ref.json +0 -54
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/gerrit_no_reset.json +0 -54
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/no_shallow.json +0 -54
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/reset_root_solution_revision.json +0 -53
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/trychange.json +0 -55
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/trychange_oauth2_buildbot.json +0 -57
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/trychange_oauth2_json.json +0 -55
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/trychange_oauth2_json_win.json +0 -55
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob.json +0 -59
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_fail.json +0 -62
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_fail_patch.json +0 -83
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_fail_patch_download.json +0 -84
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_gerrit_angle.json +0 -60
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_gerrit_angle_deprecated.json +0 -60
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_v8.json +0 -62
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_v8_head_by_default.json +0 -62
- data/vendor/depot_tools/recipes/recipe_modules/gclient/bundle_extra_paths.txt +0 -4
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/example.expected/basic.json +0 -66
- data/vendor/depot_tools/recipes/recipe_modules/git/bundle_extra_paths.txt +0 -28
- data/vendor/depot_tools/recipes/recipe_modules/git/example.expected/platform_win.json +0 -237
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_generic_win.json +0 -15
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_linux.json +0 -15
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_mac.json +0 -15
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_win.json +0 -15
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/bundle_extra_paths.txt +0 -30
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/example.expected/with_git_patch.json +0 -109
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/example.expected/with_git_patch_luci.json +0 -8
@@ -37,9 +37,21 @@ from StringIO import StringIO
|
|
37
37
|
|
38
38
|
ROOT = os.path.abspath(os.path.dirname(__file__))
|
39
39
|
IS_WIN = sys.platform == 'win32'
|
40
|
-
GIT_EXE = ROOT+'\\git.bat' if IS_WIN else 'git'
|
41
40
|
TEST_MODE = False
|
42
41
|
|
42
|
+
|
43
|
+
def win_find_git():
|
44
|
+
for elem in os.environ.get('PATH', '').split(os.pathsep):
|
45
|
+
for candidate in ('git.exe', 'git.bat'):
|
46
|
+
path = os.path.join(elem, candidate)
|
47
|
+
if os.path.isfile(path):
|
48
|
+
return path
|
49
|
+
raise ValueError('Could not find Git on PATH.')
|
50
|
+
|
51
|
+
|
52
|
+
GIT_EXE = 'git' if not IS_WIN else win_find_git()
|
53
|
+
|
54
|
+
|
43
55
|
FREEZE = 'FREEZE'
|
44
56
|
FREEZE_SECTIONS = {
|
45
57
|
'indexed': 'soft',
|
@@ -48,6 +60,14 @@ FREEZE_SECTIONS = {
|
|
48
60
|
FREEZE_MATCHER = re.compile(r'%s.(%s)' % (FREEZE, '|'.join(FREEZE_SECTIONS)))
|
49
61
|
|
50
62
|
|
63
|
+
# NOTE: This list is DEPRECATED in favor of the Infra Git wrapper:
|
64
|
+
# https://chromium.googlesource.com/infra/infra/+/master/go/src/infra/tools/git
|
65
|
+
#
|
66
|
+
# New entries should be added to the Git wrapper, NOT to this list. "git_retry"
|
67
|
+
# is, similarly, being deprecated in favor of the Git wrapper.
|
68
|
+
#
|
69
|
+
# ---
|
70
|
+
#
|
51
71
|
# Retry a git operation if git returns a error response with any of these
|
52
72
|
# messages. It's all observed 'bad' GoB responses so far.
|
53
73
|
#
|
@@ -320,7 +340,7 @@ def branch_config_map(option):
|
|
320
340
|
return {}
|
321
341
|
|
322
342
|
|
323
|
-
def branches(*args):
|
343
|
+
def branches(use_limit=True, *args):
|
324
344
|
NO_BRANCH = ('* (no branch', '* (detached', '* (HEAD detached')
|
325
345
|
|
326
346
|
key = 'depot-tools.branch-limit'
|
@@ -330,7 +350,7 @@ def branches(*args):
|
|
330
350
|
|
331
351
|
num = len(raw_branches)
|
332
352
|
|
333
|
-
if num > limit:
|
353
|
+
if use_limit and num > limit:
|
334
354
|
die("""\
|
335
355
|
Your git repo has too many branches (%d/%d) for this tool to work well.
|
336
356
|
|
@@ -9,6 +9,7 @@ import cPickle
|
|
9
9
|
import functools
|
10
10
|
import logging
|
11
11
|
import os
|
12
|
+
import re
|
12
13
|
import shutil
|
13
14
|
import subprocess
|
14
15
|
import sys
|
@@ -274,7 +275,9 @@ class _Drover(object):
|
|
274
275
|
return True
|
275
276
|
|
276
277
|
self._run_git_command(['reset', '--hard'])
|
277
|
-
|
278
|
+
|
279
|
+
author = self._run_git_command(['log', '-1', '--format=%ae']).strip()
|
280
|
+
self._run_git_command(['cl', 'upload', '--send-mail', '--tbrs', author],
|
278
281
|
error_message='Upload failed',
|
279
282
|
interactive=True)
|
280
283
|
|
@@ -294,6 +297,9 @@ class _Drover(object):
|
|
294
297
|
interaction. If false, the command will be provided with no input and
|
295
298
|
the output is captured.
|
296
299
|
|
300
|
+
Returns:
|
301
|
+
stdout as a string, or stdout interleaved with stderr if self._verbose
|
302
|
+
|
297
303
|
Raises:
|
298
304
|
Error: The command failed to complete successfully.
|
299
305
|
"""
|
@@ -321,6 +327,9 @@ class _Drover(object):
|
|
321
327
|
args: A list of strings containing the args to pass to git.
|
322
328
|
stdin: A string to provide on stdin.
|
323
329
|
|
330
|
+
Returns:
|
331
|
+
stdout as a string, or stdout interleaved with stderr if self._verbose
|
332
|
+
|
324
333
|
Raises:
|
325
334
|
Error: The command failed to complete successfully.
|
326
335
|
"""
|
@@ -13,7 +13,7 @@ from collections import defaultdict
|
|
13
13
|
import git_common as git
|
14
14
|
|
15
15
|
|
16
|
-
FOOTER_PATTERN = re.compile(r'^\s*([\w-]+): (.*)$')
|
16
|
+
FOOTER_PATTERN = re.compile(r'^\s*([\w-]+): *(.*)$')
|
17
17
|
CHROME_COMMIT_POSITION_PATTERN = re.compile(r'^([\w/\-\.]+)@{#(\d+)}$')
|
18
18
|
|
19
19
|
|
@@ -42,12 +42,25 @@ def parse_footers(message):
|
|
42
42
|
return footer_map
|
43
43
|
|
44
44
|
|
45
|
+
def matches_footer_key(line, key):
|
46
|
+
"""Returns whether line is a valid footer whose key matches a given one.
|
47
|
+
|
48
|
+
Keys are compared in normalized form.
|
49
|
+
"""
|
50
|
+
r = parse_footer(line)
|
51
|
+
if r is None:
|
52
|
+
return False
|
53
|
+
return normalize_name(r[0]) == normalize_name(key)
|
54
|
+
|
55
|
+
|
45
56
|
def split_footers(message):
|
46
57
|
"""Returns (non_footer_lines, footer_lines, parsed footers).
|
47
58
|
|
48
59
|
Guarantees that:
|
49
60
|
(non_footer_lines + footer_lines) == message.splitlines().
|
50
61
|
parsed_footers is parse_footer applied on each line of footer_lines.
|
62
|
+
There could be fewer parsed_footers than footer lines if some lines in
|
63
|
+
last paragraph are malformed.
|
51
64
|
"""
|
52
65
|
message_lines = list(message.splitlines())
|
53
66
|
footer_lines = []
|
@@ -61,8 +74,8 @@ def split_footers(message):
|
|
61
74
|
footer_lines = []
|
62
75
|
|
63
76
|
footer_lines.reverse()
|
64
|
-
footers = map(parse_footer, footer_lines)
|
65
|
-
if not
|
77
|
+
footers = filter(None, map(parse_footer, footer_lines))
|
78
|
+
if not footers:
|
66
79
|
return message_lines, [], []
|
67
80
|
return message_lines[:-len(footer_lines)], footer_lines, footers
|
68
81
|
|
@@ -84,13 +97,16 @@ def add_footer_change_id(message, change_id):
|
|
84
97
|
after_keys=['Bug', 'Issue', 'Test', 'Feature'])
|
85
98
|
|
86
99
|
|
87
|
-
def add_footer(message, key, value, after_keys=None):
|
100
|
+
def add_footer(message, key, value, after_keys=None, before_keys=None):
|
88
101
|
"""Returns a message with given footer appended.
|
89
102
|
|
90
|
-
If after_keys
|
91
|
-
|
92
|
-
|
93
|
-
|
103
|
+
If after_keys and before_keys are both None (default), appends footer last.
|
104
|
+
If after_keys is provided and matches footers already present, inserts footer
|
105
|
+
as *early* as possible while still appearing after all provided keys, even
|
106
|
+
if doing so conflicts with before_keys.
|
107
|
+
If before_keys is provided, inserts footer as late as possible while still
|
108
|
+
appearing before all provided keys.
|
109
|
+
|
94
110
|
For example, given
|
95
111
|
message='Header.\n\nAdded: 2016\nBug: 123\nVerified-By: CQ'
|
96
112
|
after_keys=['Bug', 'Issue']
|
@@ -99,25 +115,49 @@ def add_footer(message, key, value, after_keys=None):
|
|
99
115
|
assert key == normalize_name(key), 'Use normalized key'
|
100
116
|
new_footer = '%s: %s' % (key, value)
|
101
117
|
|
102
|
-
top_lines, footer_lines,
|
118
|
+
top_lines, footer_lines, _ = split_footers(message)
|
103
119
|
if not footer_lines:
|
104
120
|
if not top_lines or top_lines[-1] != '':
|
105
121
|
top_lines.append('')
|
106
122
|
footer_lines = [new_footer]
|
107
|
-
elif not after_keys:
|
108
|
-
footer_lines.append(new_footer)
|
109
123
|
else:
|
110
|
-
after_keys = set(map(normalize_name, after_keys))
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
124
|
+
after_keys = set(map(normalize_name, after_keys or []))
|
125
|
+
after_indices = [
|
126
|
+
footer_lines.index(x) for x in footer_lines for k in after_keys
|
127
|
+
if matches_footer_key(x, k)]
|
128
|
+
before_keys = set(map(normalize_name, before_keys or []))
|
129
|
+
before_indices = [
|
130
|
+
footer_lines.index(x) for x in footer_lines for k in before_keys
|
131
|
+
if matches_footer_key(x, k)]
|
132
|
+
if after_indices:
|
133
|
+
# after_keys takes precedence, even if there's a conflict.
|
134
|
+
insert_idx = max(after_indices) + 1
|
135
|
+
elif before_indices:
|
136
|
+
insert_idx = min(before_indices)
|
116
137
|
else:
|
117
|
-
footer_lines
|
138
|
+
insert_idx = len(footer_lines)
|
139
|
+
footer_lines.insert(insert_idx, new_footer)
|
118
140
|
return '\n'.join(top_lines + footer_lines)
|
119
141
|
|
120
142
|
|
143
|
+
def remove_footer(message, key):
|
144
|
+
"""Returns a message with all instances of given footer removed."""
|
145
|
+
key = normalize_name(key)
|
146
|
+
top_lines, footer_lines, _ = split_footers(message)
|
147
|
+
if not footer_lines:
|
148
|
+
return message
|
149
|
+
new_footer_lines = []
|
150
|
+
for line in footer_lines:
|
151
|
+
try:
|
152
|
+
f = normalize_name(parse_footer(line)[0])
|
153
|
+
if f != key:
|
154
|
+
new_footer_lines.append(line)
|
155
|
+
except TypeError:
|
156
|
+
# If the footer doesn't parse (i.e. is malformed), just let it carry over.
|
157
|
+
new_footer_lines.append(line)
|
158
|
+
return '\n'.join(top_lines + new_footer_lines)
|
159
|
+
|
160
|
+
|
121
161
|
def get_unique(footers, key):
|
122
162
|
key = normalize_name(key)
|
123
163
|
values = footers[key]
|
@@ -152,8 +192,8 @@ def main(args):
|
|
152
192
|
parser = argparse.ArgumentParser(
|
153
193
|
formatter_class=argparse.ArgumentDefaultsHelpFormatter
|
154
194
|
)
|
155
|
-
parser.add_argument('ref', nargs='?', help=
|
156
|
-
|
195
|
+
parser.add_argument('ref', nargs='?', help='Git ref to retrieve footers from.'
|
196
|
+
' Omit to parse stdin.')
|
157
197
|
|
158
198
|
g = parser.add_mutually_exclusive_group()
|
159
199
|
g.add_argument('--key', metavar='KEY',
|
@@ -162,14 +202,14 @@ def main(args):
|
|
162
202
|
g.add_argument('--position', action='store_true')
|
163
203
|
g.add_argument('--position-ref', action='store_true')
|
164
204
|
g.add_argument('--position-num', action='store_true')
|
165
|
-
g.add_argument('--json', help=
|
205
|
+
g.add_argument('--json', help='filename to dump JSON serialized footers to.')
|
166
206
|
|
167
207
|
opts = parser.parse_args(args)
|
168
208
|
|
169
209
|
if opts.ref:
|
170
210
|
message = git.run('log', '-1', '--format=%B', opts.ref)
|
171
211
|
else:
|
172
|
-
message =
|
212
|
+
message = sys.stdin.read()
|
173
213
|
|
174
214
|
footers = parse_footers(message)
|
175
215
|
|
@@ -312,9 +312,9 @@ def hyper_blame(ignored, filename, revision='HEAD', out=sys.stdout,
|
|
312
312
|
newline = parent_blame[lineno_previous - 1]
|
313
313
|
|
314
314
|
# Replace the commit and lineno_then, but not the lineno_now or context.
|
315
|
-
|
316
|
-
line = BlameLine(newline.commit, line.context, lineno_previous,
|
315
|
+
line = BlameLine(newline.commit, line.context, newline.lineno_then,
|
317
316
|
line.lineno_now, True)
|
317
|
+
logging.debug(' replacing with %r', line)
|
318
318
|
|
319
319
|
# If any line has a different filename to the file's current name, turn on
|
320
320
|
# filename display for the entire blame output.
|
@@ -345,6 +345,7 @@ def main(args, stdout=sys.stdout, stderr=sys.stderr):
|
|
345
345
|
type=argparse.FileType('r'), dest='ignore_file',
|
346
346
|
help='a file containing a list of revisions to ignore')
|
347
347
|
parser.add_argument('--no-default-ignores', dest='no_default_ignores',
|
348
|
+
action='store_true',
|
348
349
|
help='Do not ignore commits from .git-blame-ignore-revs.')
|
349
350
|
parser.add_argument('revision', nargs='?', default='HEAD', metavar='REVISION',
|
350
351
|
help='revision to look at')
|
@@ -4,8 +4,9 @@
|
|
4
4
|
# found in the LICENSE file.
|
5
5
|
|
6
6
|
"""
|
7
|
-
|
8
|
-
|
7
|
+
Enhances `git log --graph` view with information on commit branches + tags that
|
8
|
+
point to them. Items are colorized as follows:
|
9
|
+
|
9
10
|
* Cyan - Currently checked out branch
|
10
11
|
* Green - Local branch
|
11
12
|
* Red - Remote branches
|
@@ -37,9 +38,35 @@ RESET = colorama.Fore.RESET + colorama.Back.RESET + colorama.Style.RESET_ALL
|
|
37
38
|
# Git emits combined color
|
38
39
|
BRIGHT_RED = '\x1b[1;31m'
|
39
40
|
|
41
|
+
|
42
|
+
def print_help():
|
43
|
+
names = {
|
44
|
+
'Cyan': CYAN,
|
45
|
+
'Green': GREEN,
|
46
|
+
'Magenta': MAGENTA,
|
47
|
+
'Red': RED,
|
48
|
+
'White': WHITE,
|
49
|
+
'Blue background': BLUEBAK,
|
50
|
+
}
|
51
|
+
msg = "usage: git map [-h] [<args>]\n"
|
52
|
+
|
53
|
+
for line in __doc__.splitlines():
|
54
|
+
for key in names.keys():
|
55
|
+
if key in line:
|
56
|
+
msg += line.replace('* ', '* ' + names[key])+RESET+'\n'
|
57
|
+
break
|
58
|
+
else:
|
59
|
+
msg += line + '\n'
|
60
|
+
sys.stdout.write(msg)
|
61
|
+
|
62
|
+
|
40
63
|
def main(argv):
|
64
|
+
if '-h' in argv:
|
65
|
+
print_help()
|
66
|
+
return 0
|
67
|
+
|
41
68
|
map_extra = get_config_list('depot_tools.map_extra')
|
42
|
-
fmt = '%C(red bold)%h%x09%Creset%C(green)%d%Creset %C(yellow)%
|
69
|
+
fmt = '%C(red bold)%h%x09%Creset%C(green)%d%Creset %C(yellow)%cd%Creset ~ %s'
|
43
70
|
log_proc = subprocess2.Popen(
|
44
71
|
[GIT_EXE, 'log', '--graph', '--branches', '--tags', root(),
|
45
72
|
'--color=always', '--date=short', ('--pretty=format:' + fmt)
|
@@ -3,8 +3,7 @@
|
|
3
3
|
# Use of this source code is governed by a BSD-style license that can be
|
4
4
|
# found in the LICENSE file.
|
5
5
|
|
6
|
-
"""
|
7
|
-
by their upstream ('tracking branch') layout.
|
6
|
+
"""Print dependency tree of branches in local repo.
|
8
7
|
|
9
8
|
Example:
|
10
9
|
origin/master
|
@@ -278,6 +277,19 @@ class BranchMapper(object):
|
|
278
277
|
self.__append_branch(child, depth=depth + 1)
|
279
278
|
|
280
279
|
|
280
|
+
def print_desc():
|
281
|
+
for line in __doc__.splitlines():
|
282
|
+
starpos = line.find('* ')
|
283
|
+
if starpos == -1 or '-' not in line:
|
284
|
+
print(line)
|
285
|
+
else:
|
286
|
+
_, color, rest = line.split(None, 2)
|
287
|
+
outline = line[:starpos+1]
|
288
|
+
outline += getattr(Fore, color.upper()) + " " + color + " " + Fore.RESET
|
289
|
+
outline += rest
|
290
|
+
print(outline)
|
291
|
+
print('')
|
292
|
+
|
281
293
|
def main(argv):
|
282
294
|
setup_color.init()
|
283
295
|
if get_git_version() < MIN_UPSTREAM_TRACK_GIT_VERSION:
|
@@ -287,8 +299,10 @@ def main(argv):
|
|
287
299
|
'.'.join(str(x) for x in MIN_UPSTREAM_TRACK_GIT_VERSION) +
|
288
300
|
'. Please consider upgrading.')
|
289
301
|
|
290
|
-
|
291
|
-
|
302
|
+
if '-h' in argv:
|
303
|
+
print_desc()
|
304
|
+
|
305
|
+
parser = argparse.ArgumentParser()
|
292
306
|
parser.add_argument('-v', action='count',
|
293
307
|
help='Display branch hash and Rietveld URL')
|
294
308
|
parser.add_argument('--no-color', action='store_true', dest='nocolor',
|
@@ -204,8 +204,14 @@ def load_generation_numbers(targets):
|
|
204
204
|
|
205
205
|
if git.tree(REF) is None:
|
206
206
|
empty = git.mktree({})
|
207
|
-
commit_hash = git.run(
|
208
|
-
|
207
|
+
commit_hash = git.run(
|
208
|
+
# Git user.name and/or user.email may not be configured, so specifying
|
209
|
+
# them explicitly. They are not used, but requried by Git.
|
210
|
+
'-c', 'user.name=%s' % AUTHOR_NAME,
|
211
|
+
'-c', 'user.email=%s' % AUTHOR_EMAIL,
|
212
|
+
'commit-tree',
|
213
|
+
'-m', 'Initial commit from git-number',
|
214
|
+
empty)
|
209
215
|
git.run('update-ref', REF, commit_hash)
|
210
216
|
|
211
217
|
with git.ScopedPool(kind=POOL_KIND) as pool:
|
@@ -3,8 +3,16 @@
|
|
3
3
|
# Use of this source code is governed by a BSD-style license that can be
|
4
4
|
# found in the LICENSE file.
|
5
5
|
|
6
|
+
|
7
|
+
"""Generic retry wrapper for Git operations.
|
8
|
+
|
9
|
+
This is largely DEPRECATED in favor of the Infra Git wrapper:
|
10
|
+
https://chromium.googlesource.com/infra/infra/+/master/go/src/infra/tools/git
|
11
|
+
"""
|
12
|
+
|
6
13
|
import logging
|
7
14
|
import optparse
|
15
|
+
import os
|
8
16
|
import subprocess
|
9
17
|
import sys
|
10
18
|
import threading
|
@@ -111,6 +119,19 @@ class GitRetry(object):
|
|
111
119
|
|
112
120
|
|
113
121
|
def main(args):
|
122
|
+
# If we're using the Infra Git wrapper, do nothing here.
|
123
|
+
# https://chromium.googlesource.com/infra/infra/+/master/go/src/infra/tools/git
|
124
|
+
if 'INFRA_GIT_WRAPPER' in os.environ:
|
125
|
+
# Remove Git's execution path from PATH so that our call-through re-invokes
|
126
|
+
# the Git wrapper.
|
127
|
+
# See crbug.com/721450
|
128
|
+
env = os.environ.copy()
|
129
|
+
git_exec = subprocess.check_output([GIT_EXE, '--exec-path']).strip()
|
130
|
+
env['PATH'] = os.pathsep.join([
|
131
|
+
elem for elem in env.get('PATH', '').split(os.pathsep)
|
132
|
+
if elem != git_exec])
|
133
|
+
return subprocess.call([GIT_EXE] + args, env=env)
|
134
|
+
|
114
135
|
parser = optparse.OptionParser()
|
115
136
|
parser.disable_interspersed_args()
|
116
137
|
parser.add_option('-v', '--verbose',
|
data/vendor/depot_tools/gn.bat
CHANGED
@@ -4,8 +4,9 @@
|
|
4
4
|
:: found in the LICENSE file.
|
5
5
|
setlocal
|
6
6
|
|
7
|
-
::
|
8
|
-
PATH
|
7
|
+
:: Ensure that "depot_tools" is somewhere in PATH so this tool can be used
|
8
|
+
:: standalone, but allow other PATH manipulations to take priority.
|
9
|
+
set PATH=%PATH%;%~dp0
|
9
10
|
|
10
11
|
:: Defer control.
|
11
|
-
|
12
|
+
python "%~dp0\gn.py" %*
|
@@ -23,12 +23,8 @@ verifiers {
|
|
23
23
|
|
24
24
|
try_job {
|
25
25
|
buckets {
|
26
|
-
name: "luci.infra.try"
|
26
|
+
name: "luci.infra.depot_tools.try"
|
27
27
|
builders { name: "Depot Tools Presubmit" }
|
28
|
-
builders {
|
29
|
-
name: "Recipe Roll Downstream Tester"
|
30
|
-
experiment_percentage: 100
|
31
|
-
}
|
32
28
|
}
|
33
29
|
}
|
34
30
|
}
|
@@ -1,22 +1,24 @@
|
|
1
1
|
{
|
2
|
-
"api_version":
|
3
|
-
"deps": [
|
4
|
-
{
|
5
|
-
"branch": "master",
|
6
|
-
"project_id": "recipe_engine",
|
7
|
-
"revision": "4fcdb75517198a9ca32c7c4aecbe2e6f54b8b6c2",
|
8
|
-
"url": "https://chromium.googlesource.com/external/github.com/luci/recipes-py.git"
|
9
|
-
}
|
10
|
-
],
|
11
|
-
"project_id": "depot_tools",
|
12
|
-
"recipes_path": "recipes",
|
2
|
+
"api_version": 2,
|
13
3
|
"autoroll_recipe_options": {
|
14
|
-
"trivial": {
|
15
|
-
"tbr_emails": ["iannucci@chromium.org"],
|
16
|
-
"automatic_commit": true
|
17
|
-
},
|
18
4
|
"nontrivial": {
|
19
5
|
"automatic_commit_dry_run": true
|
6
|
+
},
|
7
|
+
"trivial": {
|
8
|
+
"automatic_commit": true,
|
9
|
+
"tbr_emails": [
|
10
|
+
"iannucci@chromium.org"
|
11
|
+
]
|
12
|
+
}
|
13
|
+
},
|
14
|
+
"canonical_repo_url": "https://chromium.googlesource.com/chromium/tools/depot_tools.git",
|
15
|
+
"deps": {
|
16
|
+
"recipe_engine": {
|
17
|
+
"branch": "master",
|
18
|
+
"revision": "de3238ca6d8320585f5dbcf051cd96cbc72d4684",
|
19
|
+
"url": "https://chromium.googlesource.com/external/github.com/luci/recipes-py.git"
|
20
20
|
}
|
21
|
-
}
|
21
|
+
},
|
22
|
+
"project_id": "depot_tools",
|
23
|
+
"recipes_path": "recipes"
|
22
24
|
}
|