mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:50:53 +01:00
[PR #2197] merge_check: distinguish legacy-encoded lines before reporting duplicates #2202
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2202
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2197
Author: @EdenBendheim
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:ubiq/merge-check-blob-comparison📝 Commits (1)
ead43b5merge_check: distinguish legacy-encoded lines before reporting duplicates📊 Changes
2 files changed (+25 additions, -4 deletions)
View changed files
📝
scripts/merge_check.py(+6 -4)📝
tests/test_merge_check.py(+19 -0)📄 Description
Claimed in the coordination issue as: MERGE-CHECK-LOSSLESS-BLOB-COMPARISON (claim)
The merge checker rejected a clean PR when its new lines differed from existing text only in non-UTF-8 bytes. For example, CP1252
éandèboth became the same replacement character before comparison. The checker now preserves those bytes during comparison and converts them for display only after identifying a real duplicate.The regression uses a temporary Git repository with distinct and byte-identical blocks. On main
a73a57e13the distinct block triggered three false duplicate lines. Onead43b578, the distinct block passes and the identical block is still reported with printable samples. All 25test_merge_check.pytests passed with Python 3.12 on macOS. The changed-file game-data check andgit diff --checkpassed.GPUs tested: n/a. All tests used synthetic inputs.
AI-assisted: yes. Created with gpt-6.2-astra in Codex.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.