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

Unified Diff: tools/findit/blame.py

Issue 510163002: [Findit] Fix blame for GIT and uptake bug fix. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reupload Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/findit/chromium_deps.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/findit/blame.py
diff --git a/tools/findit/blame.py b/tools/findit/blame.py
index 30c54bd1887e0c454a1d8f5c700e27ad8e3c1881..67ca30e8f7163a27f4fd56267ff02feb5597205b 100644
--- a/tools/findit/blame.py
+++ b/tools/findit/blame.py
@@ -124,6 +124,9 @@ class BlameList(object):
file_path = stack_frame.file_path
crashed_line_number = stack_frame.crashed_line_range[0]
+ if file_path.startswith(component_path):
+ file_path = file_path[len(component_path):]
+
# Parse blame information.
parsed_blame_info = repository_parser.ParseBlameInfo(
component_path, file_path, crashed_line_number, crash_revision)
« no previous file with comments | « no previous file | tools/findit/chromium_deps.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698