Skip to content

Conversation

Byron
Copy link
Member

@Byron Byron commented Oct 7, 2025

Previously, there were special cases that would cause it to auto-merge conflicts even though it shouldn't.

This is now fixed just by removing the special case entirely, which seems unexpected in any of the test-suite.

…mpty bases.

Previously, there were special cases that would cause it to auto-merge conflicts
even though it shouldn't.
This is now fixed just by removing the special case entirely, which seems
unexpected in any of the test-suite.
@Byron Byron marked this pull request as ready for review October 7, 2025 14:44
@Byron Byron enabled auto-merge October 7, 2025 14:44
Comment on lines -118 to -122
if their_hunks.is_empty() {
write_hunks(our_hunks, input, &current_tokens, out);
} else if our_hunks.is_empty() {
write_hunks(their_hunks, input, &current_tokens, out);
} else {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Caleb-T-Owens Removing this special case resolved the issue you discovered. Turns out it was entirely unnecessary, and besides the test-case that validates it specifically, there was only one more failure due to that in existing tests, and as it was already a deviation, it was overlooked.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat, thank you for looking into this!

@Byron Byron mentioned this pull request Oct 7, 2025
2 tasks
@Byron Byron disabled auto-merge October 7, 2025 15:15
@Byron
Copy link
Member Author

Byron commented Oct 7, 2025

Forcing merge as Windows has weird errors that seem related to … OS flakiness.

@Byron Byron merged commit fcb4448 into main Oct 7, 2025
27 of 28 checks passed
Byron added a commit to gitbutlerapp/gitbutler that referenced this pull request Oct 7, 2025
@EliahKagan
Copy link
Member

EliahKagan commented Oct 7, 2025

Regarding the Windows failures:

       ABORT [   0.018s] gix-ref-tests::refs file::log::iter::backward::with_buffer_big_enough_for_largest_line::realistic_logs_can_be_read_completely
           - with code 0xc0000142: A dynamic link library (DLL) initialization routine failed. (os error 1114)
    (test aborted)
       ABORT [   0.019s] gix-ref-tests::refs file::log::iter::backward::with_buffer_big_enough_for_largest_line::single_line
           - with code 0xc0000142: A dynamic link library (DLL) initialization routine failed. (os error 1114)
       ...

I haven't seen that one before! I don't have time to look into it now but I'll try to do so later. I'm also reruning the test to see if it happens again. Maybe there is a problem on the runner?

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.

3 participants