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

TODO: Allow the use of fuzzy patching. #172

Open
TheCurle opened this issue Jun 11, 2022 · 0 comments
Open

TODO: Allow the use of fuzzy patching. #172

TheCurle opened this issue Jun 11, 2022 · 0 comments
Labels
type: enhancement New feature or request

Comments

@TheCurle
Copy link
Contributor

TheCurle commented Jun 11, 2022

So, we're thinking about snapshots.

In the primary Forge repo, we're using fuzzy patching (triggered by the Pupdating flag) to help automate the resolution of most patches to a changed and shifted file.

It works by finding the closest context match (the surrounding area around a patch hunk) if there is no exact match to target. If there is no "close" match, the patch goes to a rejects folder for manual resolution by a human operator.

This would help greatly in MCPConfig, perhaps with a lower threshold for failed applications so that common fuzzy patching issues (such as duplicated lines) are less likely to happen.

Switching to fuzzy patching, combined with incremental patches (described in another issue) will mean that the 1.19-pre1 to 1.19-rc2 update would have roughly 3 files rather than roughly 60.

@TheCurle TheCurle added the type: enhancement New feature or request label Jun 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant