calcBranchRepoSizes without journal files
This will be used to prime the RepoSizes database, which will always contain values that correpond to information in the git-annex branch, so without anything from journal files. Factored out overJournalFileContents which will later be used to update Annex.reposizes to include information from journal files. This will be partitcularly important to support private UUIDs which only ever get to journal files and not to the branch.
This commit is contained in:
parent
90a79a6c1e
commit
8ac2685b33
8 changed files with 103 additions and 61 deletions
|
@ -187,9 +187,9 @@ updateFromLog db@(ImportFeedDbHandle h) (oldtree, currtree)
|
|||
-- When initially populating the database, this
|
||||
-- is faster than diffing from the empty tree
|
||||
-- and looking up every log file.
|
||||
scanbranch = Annex.Branch.overBranchFileContents toscan False goscan >>= \case
|
||||
Annex.Branch.NoUnmergedBranches () -> return ()
|
||||
Annex.Branch.UnmergedBranches () -> scandiff
|
||||
scanbranch = Annex.Branch.overBranchFileContents False toscan goscan >>= \case
|
||||
Annex.Branch.NoUnmergedBranches ((), _) -> return ()
|
||||
Annex.Branch.UnmergedBranches ((), _) -> scandiff
|
||||
|
||||
toscan f
|
||||
| isUrlLog f = Just ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue