-
- Runtime state about the git-annex branch, and a small cache.
-
- - Copyright 2011-2021 Joey Hess <id@joeyh.name>
+ - Copyright 2011-2022 Joey Hess <id@joeyh.name>
-
- Licensed under the GNU AGPL version 3 or higher.
-}
-- so avoid an unnecessary write to the MVar that changeState
-- would do.
--
- -- This assumes that another thread is not changing journalIgnorable
+ -- This assumes that another thread is not setting journalIgnorable
-- at the same time, but since runUpdateOnce is the only
- -- thing that changes it, and it only runs once, that
+ -- thing that sets it, and it only runs once, that
-- should not happen.
st <- getState
when (journalIgnorable st) $
- will be seen.
-}
enableInteractiveBranchAccess :: Annex ()
-enableInteractiveBranchAccess = changeState $
- \s -> s { needInteractiveAccess = True }
+enableInteractiveBranchAccess = changeState $ \s -> s
+ { needInteractiveAccess = True
+ , journalIgnorable = False
+ }
setCache :: RawFilePath -> L.ByteString -> Annex ()
setCache file content = changeState $ \s -> s
find -printf.
* S3: Avoid writing or checking the uuid file in the S3 bucket when
importtree=yes or exporttree=yes.
+ * Fix a reversion that prevented --batch commands (and the assistant)
+ from noticing data written to the journal by other commands.
-- Joey Hess <id@joeyh.name> Tue, 28 Jun 2022 14:49:17 -0400
--- /dev/null
+--batch commands are supposed to notice changes that get made to the
+journal while they are running. This way, if two batch commands are run,
+one making changes and the other reading the values, the reader notices the
+changes.
+
+That does not currently happen. Looks like runUpdateOnce runs before
+enableInteractiveBranchAccess, and so sets journalIgnorable. Only if the
+batch command writes to the journal does journalIgnorable get unset, and
+then the command will notice journalled changes by itself or others.
+But query commands
+
+> [[fixed|done]] --[[Joey]]