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

Issue 1629253002: git hyper-blame: Added approx. line number translation. (Closed)

Created:
4 years, 11 months ago by Matt Giuca
Modified:
4 years, 10 months ago
Reviewers:
iannucci
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@git-hyper-blame
Target Ref:
refs/heads/master
Visibility:
Public.

Description

git hyper-blame: Added approx. line number translation. Previously, when a commit was skipped, it would be blamed on the line number the line had *after* the skipped commit. This could mean a totally unrelated commit gets blamed. Now, a heuristic analyses the diff of the skipped commit to discover approximately what line number the line had *before* the skipped commit, so it can hopefully be blamed on the right commit. BUG=574290 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=298609

Patch Set 1 #

Patch Set 2 : Update. #

Patch Set 3 : Removed some unreachable code paths (fix coverage). #

Patch Set 4 : Rebase. #

Patch Set 5 : Rebase. #

Patch Set 6 : Mostly rewrite approx_lineno, fixing and simplifying. Lots more tests. #

Total comments: 4

Patch Set 7 : Added Caveats section to man page. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -56 lines) Patch
M git_common.py View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M git_hyper_blame.py View 1 2 3 4 5 2 chunks +112 lines, -12 lines 0 comments Download
M man/html/git-hyper-blame.html View 1 2 3 4 5 6 2 chunks +14 lines, -9 lines 0 comments Download
M man/man1/git-hyper-blame.1 View 1 2 3 4 5 6 2 chunks +8 lines, -14 lines 0 comments Download
M man/src/git-hyper-blame.txt View 1 2 3 4 5 6 1 chunk +13 lines, -4 lines 0 comments Download
M tests/git_common_test.py View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download
M tests/git_hyper_blame_test.py View 1 2 3 4 5 3 chunks +82 lines, -17 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
Matt Giuca
This patch changes git hyper-blame from "sort of OK" to "pretty great" at identifying which ...
4 years, 10 months ago (2016-02-04 04:48:18 UTC) #3
iannucci
nice! lgtm :) https://codereview.chromium.org/1629253002/diff/120001/git_common.py File git_common.py (right): https://codereview.chromium.org/1629253002/diff/120001/git_common.py#newcode378 git_common.py:378: return run('diff', oldrev, newrev, *args) not ...
4 years, 10 months ago (2016-02-05 00:55:55 UTC) #4
Matt Giuca
https://codereview.chromium.org/1629253002/diff/120001/git_common.py File git_common.py (right): https://codereview.chromium.org/1629253002/diff/120001/git_common.py#newcode378 git_common.py:378: return run('diff', oldrev, newrev, *args) On 2016/02/05 00:55:55, iannucci ...
4 years, 10 months ago (2016-02-05 02:46:33 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1629253002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1629253002/140001
4 years, 10 months ago (2016-02-05 03:23:38 UTC) #8
commit-bot: I haz the power
4 years, 10 months ago (2016-02-05 03:25:42 UTC) #10
Message was sent while issue was closed.
Committed patchset #7 (id:140001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=298609

Powered by Google App Engine
This is Rietveld 408576698