Made git-annex sync --content much faster when all the remotes it's syncing with are export/import remotes
It was unnecessarily going over all files and checking preferred content against no remotes.
This commit is contained in:
parent
48c2a95efb
commit
3d6f1b7dba
2 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,8 @@ git-annex (7.20190323) UNRELEASED; urgency=medium
|
||||||
* Fix bug that caused importing from a special remote to repeatedly
|
* Fix bug that caused importing from a special remote to repeatedly
|
||||||
download unchanged files when multiple files in the remote have the same
|
download unchanged files when multiple files in the remote have the same
|
||||||
content.
|
content.
|
||||||
|
* Made git-annex sync --content much faster when all the remotes it's
|
||||||
|
syncing with are export/import remotes.
|
||||||
|
|
||||||
-- Joey Hess <id@joeyh.name> Tue, 09 Apr 2019 14:07:53 -0400
|
-- Joey Hess <id@joeyh.name> Tue, 09 Apr 2019 14:07:53 -0400
|
||||||
|
|
||||||
|
|
|
@ -592,6 +592,7 @@ newer remote b = do
|
||||||
- When concurrency is enabled, files are processed concurrently.
|
- When concurrency is enabled, files are processed concurrently.
|
||||||
-}
|
-}
|
||||||
seekSyncContent :: SyncOptions -> [Remote] -> CurrBranch -> Annex Bool
|
seekSyncContent :: SyncOptions -> [Remote] -> CurrBranch -> Annex Bool
|
||||||
|
seekSyncContent _ [] _ = return False
|
||||||
seekSyncContent o rs currbranch = do
|
seekSyncContent o rs currbranch = do
|
||||||
mvar <- liftIO newEmptyMVar
|
mvar <- liftIO newEmptyMVar
|
||||||
bloom <- case keyOptions o of
|
bloom <- case keyOptions o of
|
||||||
|
|
Loading…
Reference in a new issue