-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[scm] Use correct action when returning all files
Previously, every file returned by `ctx.scm.all_files()` or (when the `--all` flag was set) `ctx.scm.affected_files()` would have a "A" in its action field, falsely implying that all files were newly added, and thus making it impossible for checks to accurately determine whether a file was new or not. Now files will have the correct action value even when all files are returned. To test, I ran a locally compiled version of shac with this change through the static-checks builder in led and confirmed that a check that only checks files with action="A" no longer reports any findings: https://ci.chromium.org/ui/p/fuchsia/builders/try.shadow/static-checks/b8740770129818037905/test-results?q=ExactID%3Ashac%2Funderscore_vs_dash+VHash%3Ae3b0c44298fc1c14 Change-Id: I4dfd50386d6de9659eb9f8d91647fb22ce7a6c84 Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/1092836 Commit-Queue: Auto-Submit <[email protected]> Reviewed-by: Jerry Belton <[email protected]> Fuchsia-Auto-Submit: Oliver Newman <[email protected]>
- Loading branch information
Showing
5 changed files
with
70 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters