Legacy support, updated
Compare and merge changed files with WinMerge
WinMerge shows related files side by side and groups changed lines into differences. Work from backups, label each side carefully, and merge only reviewed changes into a separate working copy.
Prepare safe copies
- Back up the original files and confirm that you can restore them.
- Create a separate working copy for the merge. Do not experiment directly on a live website or the only copy of a customized file.
- Label the old customized file and the clean updated file so the left and right sides cannot be confused.
Compare and review
- In WinMerge, choose File > Open and select the two files or folders.
- Make the source side read-only when it must not be changed.
- Use Next Difference and Previous Difference to review each changed block in context.
- Copy only the intended difference in the correct direction. Recheck the destination pane after every merge.
Save and validate
- Save the merged working copy under version control or with a clear backup trail.
- Run the syntax, unit, or application checks that cover the changed file.
- Deploy through the normal release process and keep the original backup until the result is verified.
- For recurring changes, move the customization into supported hooks, templates, or an extension so future updates do not require manual core merges.