- internal/syncer Pull: fetch hub head manifest, 3-way merge vs base + local tree: hub-only changes apply (write/delete), local-only stay, both-changed keeps hub canonical + preserves the local edit as path.conflict-<host>-<ts>.ext - delete-vs-edit always keeps the edit; identical concurrent edits don't conflict - Sync: pull->merge->push with conflict-retry loop (converges under races) - atomic file writes; chunk reassembly via GetBlob - tests: two devices concurrent-edit -> conflict copy propagates to BOTH, zero data loss; hub delete propagates to clones |
||
|---|---|---|
| .. | ||
| pull.go | ||
| pull_test.go | ||
| syncer.go | ||
| syncer_test.go | ||