YsiCing on X: with only the library and usage ticked, the default account
of a subscription with several followed the other computer: a personal one
at home, a work one at the office, set again every day. The providers part
always syncs, and provider.Mirror took the other computer's Provider whole,
KeepLogin, KeepLoginAs and SwitchOnly with it.
Mirror now keeps this computer's three for a provider it has, and a new one
comes without KeepLoginAs (an account signed in over there). davsync's
hashes blank the three, so changing which account is kept uploads nothing
and two computers that differ only in it don't trade the part. The sign-ins
themselves (logins.json) were never synced. A backup Restore is left as it
is: it is asked for, and brings the backup's choice.
Run on mote at this tree: go test -count=1 ./internal/provider
./internal/davsync ./internal/backup ok; go vet for darwin, linux and
windows on both packages ok. Broken by hand: with backup.go and davsync.go
reverted, TestMirrorKeepsKeepLogin and TestKeepLoginIsNoChange both fail.
Not tried: two real computers syncing through a real WebDAV folder.