punt on LiveUpdate plumbing through assistant for now
This commit is contained in:
parent
1d51f18dd0
commit
18cd8bf43a
3 changed files with 10 additions and 6 deletions
|
@ -322,7 +322,7 @@ handleAdds lockdowndir havelsof largefilematcher annexdotfiles delayadd cs = ret
|
||||||
| not annexdotfiles && dotfile f =
|
| not annexdotfiles && dotfile f =
|
||||||
return (Right change)
|
return (Right change)
|
||||||
| otherwise =
|
| otherwise =
|
||||||
ifM (liftAnnex $ checkFileMatcher largefilematcher f)
|
ifM (liftAnnex $ checkFileMatcher NoLiveUpdate largefilematcher f)
|
||||||
( return (Left change)
|
( return (Left change)
|
||||||
, return (Right change)
|
, return (Right change)
|
||||||
)
|
)
|
||||||
|
@ -395,7 +395,7 @@ handleAdds lockdowndir havelsof largefilematcher annexdotfiles delayadd cs = ret
|
||||||
return Nothing
|
return Nothing
|
||||||
|
|
||||||
done change file key = liftAnnex $ do
|
done change file key = liftAnnex $ do
|
||||||
logStatus key InfoPresent
|
logStatus NoLiveUpdate key InfoPresent
|
||||||
mode <- liftIO $ catchMaybeIO $ fileMode <$> R.getFileStatus (toRawFilePath file)
|
mode <- liftIO $ catchMaybeIO $ fileMode <$> R.getFileStatus (toRawFilePath file)
|
||||||
stagePointerFile (toRawFilePath file) mode =<< hashPointerFile key
|
stagePointerFile (toRawFilePath file) mode =<< hashPointerFile key
|
||||||
showEndOk
|
showEndOk
|
||||||
|
|
|
@ -171,9 +171,9 @@ expensiveScan urlrenderer rs = batch <~> do
|
||||||
"expensive scan found too many copies of object"
|
"expensive scan found too many copies of object"
|
||||||
present key af (SeekInput []) [] callCommandAction
|
present key af (SeekInput []) [] callCommandAction
|
||||||
ts <- if present
|
ts <- if present
|
||||||
then liftAnnex . filterM (wantGetBy True (Just key) af . Remote.uuid . fst)
|
then liftAnnex . filterM (wantGetBy NoLiveUpdate True (Just key) af . Remote.uuid . fst)
|
||||||
=<< use syncDataRemotes (genTransfer Upload False)
|
=<< use syncDataRemotes (genTransfer Upload False)
|
||||||
else ifM (liftAnnex $ wantGet True (Just key) af)
|
else ifM (liftAnnex $ wantGet NoLiveUpdate True (Just key) af)
|
||||||
( use downloadRemotes (genTransfer Download True) , return [] )
|
( use downloadRemotes (genTransfer Download True) , return [] )
|
||||||
let unwanted' = S.difference unwanted slocs
|
let unwanted' = S.difference unwanted slocs
|
||||||
return (unwanted', ts)
|
return (unwanted', ts)
|
||||||
|
|
|
@ -142,11 +142,15 @@ Planned schedule of work:
|
||||||
also be done by just repeatedly touching a file named with the processes's
|
also be done by just repeatedly touching a file named with the processes's
|
||||||
pid in it, to avoid sqlite overhead.
|
pid in it, to avoid sqlite overhead.
|
||||||
|
|
||||||
|
* Check for TODO XXX markers
|
||||||
|
|
||||||
* Check all uses of NoLiveUpdate to see if a live update can be started and
|
* Check all uses of NoLiveUpdate to see if a live update can be started and
|
||||||
performed there. There is one in Annex.Cluster in particular that needs a
|
performed there. There is one in Annex.Cluster in particular that needs a
|
||||||
live update
|
live update.
|
||||||
|
|
||||||
* Check for TODO XXX markers
|
* The assistant is using NoLiveUpdate, but it should be posssible to plumb
|
||||||
|
a LiveUpdate through it from preferred content checking to location log
|
||||||
|
updating.
|
||||||
|
|
||||||
* `git-annex info` in the limitedcalc path in cachedAllRepoData
|
* `git-annex info` in the limitedcalc path in cachedAllRepoData
|
||||||
double-counts redundant information from the journal due to using
|
double-counts redundant information from the journal due to using
|
||||||
|
|
Loading…
Reference in a new issue