Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache svn previous file by last changed version #46

Merged
merged 4 commits into from
Mar 22, 2021

Conversation

sirbrillig
Copy link
Owner

@sirbrillig sirbrillig commented Mar 21, 2021

Previously we were invalidating the whole cache for svn files whenever the svn revision changed, but this is overly broad. Most files of a repo will not change when the revision changes, and we should be able to use their cached versions.

This PR changes the cache so that it uses the file's last changed revision as the hash for that file, and does not clear the whole cache based on revision.

@sirbrillig sirbrillig merged commit c89ab3d into master Mar 22, 2021
@sirbrillig sirbrillig deleted the cache-svn-previous-file-by-last-changed-version branch March 22, 2021 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant