forked from python/mypy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some fine-grained cache/fswatcher problems (python#4560)
In fswatcher, update the cache if mtime changes; otherwise an mtime change without an md5 change will cause the file to be rechecked every time. This was triggered in a painful way by fswatcher's cache being populated with mtimes from the cache files. Flush the fscache after an initial fine-grained upgrade, which could cause certain changes to be missed temporarily. Don't compute hashes for the whole source tree redundantly in caching mode, which saves a bunch of time on initial load.
- Loading branch information
Showing
2 changed files
with
11 additions
and
3 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