Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(579)

Issue 1697423004: git hyper-blame: Added automatically ignoring revs from a file. (Closed)

Created:
4 years, 10 months ago by Matt Giuca
Modified:
4 years, 10 months ago
Reviewers:
iannucci, Nico
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

git hyper-blame: Added automatically ignoring revs from a file. 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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=298897

Patch Set 1 #

Patch Set 2 : Only look for .git-blame-ignore-revs in the repo root directory. #

Patch Set 3 : Avoid too-long line. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -66 lines) Patch
M git_hyper_blame.py View 1 2 3 chunks +27 lines, -4 lines 0 comments Download
M man/html/git-hyper-blame.html View 1 5 chunks +23 lines, -21 lines 0 comments Download
M man/man1/git-hyper-blame.1 View 1 4 chunks +20 lines, -28 lines 0 comments Download
M man/src/git-hyper-blame.txt View 1 3 chunks +13 lines, -9 lines 0 comments Download
M tests/git_hyper_blame_test.py View 1 3 chunks +75 lines, -4 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
Matt Giuca
iannucci: For code review. thakis: For policy (how exactly should we specify the default file?). ...
4 years, 10 months ago (2016-02-17 04:31:07 UTC) #3
Nico
Using a check-ed in dot file for this sounds great to me. I think that's ...
4 years, 10 months ago (2016-02-17 20:22:13 UTC) #5
iannucci
lgtm. The only reason I brought up notes is because the assumption of refs/heads/master@HEAD I ...
4 years, 10 months ago (2016-02-18 01:16:14 UTC) #6
Matt Giuca
On 2016/02/18 01:16:14, iannucci wrote: > lgtm. > > The only reason I brought up ...
4 years, 10 months ago (2016-02-18 04:26:06 UTC) #7
Matt Giuca
iannucci: PTAL (as you suggested on the other CL, made it so .git-blame-ignore-revs is only ...
4 years, 10 months ago (2016-02-19 04:09:31 UTC) #9
iannucci
lgtm
4 years, 10 months ago (2016-02-19 04:34:32 UTC) #10
iannucci
may want to update the cl description too
4 years, 10 months ago (2016-02-19 04:34:47 UTC) #11
Matt Giuca
On 2016/02/19 04:34:47, iannucci wrote: > may want to update the cl description too I ...
4 years, 10 months ago (2016-02-22 00:23:34 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1697423004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1697423004/40001
4 years, 10 months ago (2016-02-22 00:24:06 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: depot_tools_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/depot_tools_presubmit/builds/481)
4 years, 10 months ago (2016-02-22 00:28:07 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1697423004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1697423004/60001
4 years, 10 months ago (2016-02-22 00:38:38 UTC) #19
commit-bot: I haz the power
4 years, 10 months ago (2016-02-22 00:40:34 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=298897

Powered by Google App Engine
This is Rietveld 408576698