-
Notifications
You must be signed in to change notification settings - Fork 994
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more gracefully handle overlapping ignore options
Summary: facebook/buck#170 (comment) refers to issues watching .svn dirs and requests a way to ignore those. facebook/buck#170 (comment) demonstrates that someone got bitten by queries stopping working when they were experimenting with ignores. While I don't think ignoring .git or .hg makes a big difference in the grand scheme (the default ignore_vcs works very well on our large repos, and noticing VCS activity is an important part of filesystem settle detection for triggers), it sounds like doing so for .svn is more of an issue. What this diff does: if a dir is listed in both `ignore_dirs` and `ignore_vcs`, we'll take the `ignore_dirs` placement as definitive, and elide that dir from the effective value of `ignore_vcs`. This means that it will no longer be candidate location for the cookie dir and that queries will continue to work just fine. Addresses #17 Test Plan: `make integration` Reviewers: fsilva, jimp, sid0 Reviewed By: sid0 Differential Revision: https://phabricator.fb.com/D1484322
- Loading branch information
Showing
3 changed files
with
33 additions
and
2 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