Skip to content

Record edit conflict when UPDATE is rebased on top of DELETE#250

Open
wonder-sk wants to merge 1 commit intomasterfrom
fix/update-delete-conflict
Open

Record edit conflict when UPDATE is rebased on top of DELETE#250
wonder-sk wants to merge 1 commit intomasterfrom
fix/update-delete-conflict

Conversation

@wonder-sk
Copy link
Contributor

When rebasing a changeset where our side updates a row that the other side has deleted, the delete wins and the update is discarded. Previously this was done silently with no record in the conflict file.

This change records the discarded update as a conflict entry, so callers can inspect what data was lost. Each column that our update was changing gets a conflict item with the original (base) value and our intended new value. The old key is absent since the other side deleted the row rather than setting new column values.

Fixes #248

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.

Create edit conflicts on rebase with concurrent UPDATE/DELETE operations

1 participant