5c3e14649e
Found a very cheap way to determine when a disconnected remote has diverged, and has new content that needs to be transferred: Piggyback on the git-annex branch update, which already checks for divergence. However, this does not check if new content has appeared locally while disconnected, that should be transferred to the remote. Also, this does not handle cases where the two git repos are in sync, but their content syncing has not caught up yet. This code could have its efficiency improved: * When multiple remotes are synced, if any one has diverged, they're all queued for transfer scans. * The transfer scanner could be told whether the remote has new content, the local repo has new content, or both, and could optimise its scan accordingly. |
||
---|---|---|
.. | ||
Branch.hs | ||
BranchState.hs | ||
CatFile.hs | ||
CheckAttr.hs | ||
Content.hs | ||
Exception.hs | ||
Journal.hs | ||
LockPool.hs | ||
Perms.hs | ||
Queue.hs | ||
Ssh.hs | ||
UUID.hs | ||
Version.hs |