• Corentin Wallez's avatar
    gclient: add use_relative_hooks · a68660d0
    Corentin Wallez authored
    When a recursive dependency has use_relative_paths it also makes sense
    to have the hooks working directory by the dependency's directory.
    Otherwise if a hook uses one of the relative dependencies it is impossible
    to know which path prefix to use.
    
    However we cannot change the behavior of hooks with use_relative_paths
    because it would break existing projects that use_relative_paths but
    hardcoded the prefix for hooks. Instead we add a second boolean,
    use_relative_hooks that triggers the behavior.
    
    Adds tests for the new behavior and a test for existing interactio
    between hooks and recursedeps.
    
    BUG=chromium:875245
    
    Change-Id: Ie4c526baa425ff887b3be54e0feca7c597ededec
    Reviewed-on: https://chromium-review.googlesource.com/1213327
    Commit-Queue: Corentin Wallez <cwallez@chromium.org>
    Reviewed-by: 's avatarEdward Lesmes <ehmaldonado@chromium.org>
    a68660d0
Name
Last commit
Last update
..
gstools Loading commit data...
auth_test.py Loading commit data...
bot_update_coverage_test.py Loading commit data...
checkout_test.py Loading commit data...
cipd_bootstrap_test.py Loading commit data...
download_from_google_storage_unittest.py Loading commit data...
fix_encoding_test.py Loading commit data...
gclient_eval_unittest.py Loading commit data...
gclient_scm_test.py Loading commit data...
gclient_smoketest.py Loading commit data...
gclient_test.py Loading commit data...
gclient_utils_test.py Loading commit data...
git_cache_test.py Loading commit data...
git_cl_creds_check_report.txt Loading commit data...
git_cl_test.py Loading commit data...
git_common_test.py Loading commit data...
git_dates_test.py Loading commit data...
git_drover_test.py Loading commit data...
git_footers_test.py Loading commit data...
git_hyper_blame_test.py Loading commit data...
git_number_test.py Loading commit data...
git_rebase_update_test.py Loading commit data...
gsutil_test.py Loading commit data...
metrics_test.py Loading commit data...
owners_finder_test.py Loading commit data...
owners_unittest.py Loading commit data...
patch_test.py Loading commit data...
presubmit_unittest.py Loading commit data...
recipes_test.py Loading commit data...
roll_dep_test.py Loading commit data...
scm_unittest.py Loading commit data...
subprocess2_test.py Loading commit data...
upload_to_google_storage_unittest.py Loading commit data...
watchlists_unittest.py Loading commit data...