• mgiuca@chromium.org's avatar
    git hyper-blame: Added automatically ignoring revs from a file. · cd0a1cf3
    mgiuca@chromium.org authored
    Added --ignore-file argument, so you can specify ignored commits in a
    file rather than as raw command-line arguments. Also, automatically
    searches for a file called .git-blame-ignore-revs, which is
    automatically used as an ignore list by default.
    
    Also, specifying an unknown revision (either on the command line or in a
    file) now generates a warning, not an error.
    
    Notes on some decisions:
    - The file is called .git-blame-ignore-revs (not mentioning hyper-blame)
      because we may use the same list in tools other than hyper-blame in
      the future.
    - We look at the *currently checked out* version of
      .git-blame-ignore-revs (not the version at the specified revision) for
      consistency with .git-ignore. Because we only expect revisions to be
      added (not deleted), it should be fine to use an ignore list from a
      newer version than the revision being blamed.
    - We considered using git notes for the ignore list so that you could
      add a revision to the ignore list without needing a follow-up CL.
      However, there are some problems with this approach. git notes is not
      automatically synced with git clone/pull. Also the Chromium infra
      tools (Reitveld, CQ) are not set up to allow modification of git
      notes, nor are changes to git notes subject to OWNERS checks. Using a
      regular file ensures all users synced to a particular revision are
      using the same ignore list.
    
    BUG=574290
    
    Review URL: https://codereview.chromium.org/1697423004
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298897 0039d316-1c4b-4281-b951-d872f2087c98
    cd0a1cf3
Name
Last commit
Last update
..
gstools Loading commit data...
subversion_config Loading commit data...
abandon.sh Loading commit data...
basic.sh Loading commit data...
checkout_test.py Loading commit data...
download_from_google_storage_unittests.py Loading commit data...
fix_encoding_test.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_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...
hooks.sh Loading commit data...
owners.sh Loading commit data...
owners_finder_test.py Loading commit data...
owners_unittest.py Loading commit data...
patch.sh Loading commit data...
patch_test.py Loading commit data...
post-dcommit-hook-test.sh Loading commit data...
presubmit_unittest.py Loading commit data...
push-basic.sh Loading commit data...
push-from-logs.sh Loading commit data...
recipes_test.py Loading commit data...
rename.sh Loading commit data...
rietveld_test.py Loading commit data...
sample_pre_commit_hook Loading commit data...
save-description-on-failure.sh Loading commit data...
scm_unittest.py Loading commit data...
submit-from-new-dir.sh Loading commit data...
submodule-merge-test.sh Loading commit data...
subprocess2_test.py Loading commit data...
test-lib.sh Loading commit data...
trychange_unittest.py Loading commit data...
upload-local-tracking-branch.sh Loading commit data...
upload-stale.sh Loading commit data...
upload_to_google_storage_unittests.py Loading commit data...
upstream.sh Loading commit data...
watchlists_unittest.py Loading commit data...