Descriptionpresubmit_support: Call git once per change, to get a diff for all files. Parse this result to generate per-file diffs, which go into a cache that's shared between the AffectedFile instances.
Greatly improves presubmit performance on Blink where there may be rule violations (my test case went from 50s to 5s).
BUG=236206
TEST=new test in presubmit_unittest.py; manual performance test on Mac and Windows after touching hundreds of files in webkit; testing included add/move/edit/delete on both binary and text files.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=205275
Patch Set 1 #Patch Set 2 : Added tests & removed debugging cruft. #Patch Set 3 : Self-review fixes. #Patch Set 4 : Small unittest cleanup. #Patch Set 5 : Fix unit test on Windows. #
Total comments: 18
Patch Set 6 : Fixes per iannucci@ #Patch Set 7 : More fixes. #
Total comments: 2
Patch Set 8 : Fix language in git_cl.py #
Messages
Total messages: 8 (0 generated)
|