log migration trees to git-annex branch
This will allow distributed migration: Start a migration in one clone of a repo, and then update other clones. commitMigration is a bit of a bear.. There is some inversion of control that needs some TMVars. Also streamLogFile's finalizer does not handle recording the trees, so an interrupt at just the wrong time can cause migration.log to be emptied but the git-annex branch not updated. Sponsored-by: Graham Spencer on Patreon
This commit is contained in:
parent
b55efc179a
commit
0bd8b17b59
12 changed files with 219 additions and 43 deletions
|
@ -198,7 +198,7 @@ batchAnnexed fmt seeker keyaction = do
|
|||
Right f -> lookupKeyStaged f >>= \case
|
||||
Nothing -> return Nothing
|
||||
Just k -> checkpresent k $
|
||||
startAction seeker si f k
|
||||
startAction seeker Nothing si f k
|
||||
Left k -> ifM (matcher (MatchingInfo (mkinfo k)))
|
||||
( checkpresent k $
|
||||
keyaction (si, k, mkActionItem k)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue