• Robert Iannucci's avatar
    [gclient] Reset to parent commit with rebase_patch_ref=False instead of master. · c39a7788
    Robert Iannucci authored
    This makes no-rebase-patch-ref correctly populate `file_list` and work with
    `git diff --cached` (i.e. they will show only the files affected by the
    patchset).
    
    Previously gclient would `reset --soft` to master. Because we didn't rebase
    on top of master with `no-rebase-patch-ref`, it has roughly nothing to do
    with the patchref we just checked out.
    
    R=gbeaty@chromium.org, ltina@google.com, tandrii@chromium.org
    
    Context:
    Tricium recipes sometimes need to use no-rebase-patch-ref in order to get
    accurate linenumbers in the diff (i.e. so that the tricium comments will
    actually line up correctly with the patchset the user uploaded); Tricium
    recipes also need to accurately get the diff file list in this mode.
    Change-Id: I5f3c95cd4958cf407a83b96c238b8c55c452ac81
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1895041
    Auto-Submit: Robbie Iannucci <iannucci@chromium.org>
    Reviewed-by: 's avatarAndrii Shyshkalov <tandrii@google.com>
    Commit-Queue: Andrii Shyshkalov <tandrii@google.com>
    c39a7788
Name
Last commit
Last update
..
gstools Loading commit data...
OWNERS Loading commit data...
auth_test.py Loading commit data...
bot_update_coverage_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...
gerrit_util_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...
ninjalog_uploader_test.py Loading commit data...
owners_finder_test.py Loading commit data...
owners_unittest.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...