mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-12-03 20:41:50 +01:00
When a mirror upload's answer was lost and the file was edited again before the next pass, the plan saw a path new on both sides with different bytes and kept the newer local edit as a sync-conflict copy of this computer's own upload (B305). An upload or new revision that hears no success back now notes the SHA-1 of the bytes it sent in its effect intent (schema 52, sync_intent.sent_sha1s). Before keeping a conflict copy, the plan checks whether Drive's file holds exactly bytes an unsettled upload of that path sent. If so, the local bytes go up as a revision of it. A first-sync adopt of a same-size file with other bytes does the same. Every other case is unchanged.