better locking for json with -J
Avoid threads emitting json at the same time and scrambling, which was still possible even with the buffering, just less likely. Converted json IO actions to JSONChunk data too.
This commit is contained in:
parent
05d4438383
commit
a108235565
6 changed files with 63 additions and 42 deletions
|
@ -105,7 +105,6 @@ showRemoteUrls :: M.Map UUID Remote -> (UUID, [URLString]) -> Annex ()
|
|||
showRemoteUrls remotemap (uu, us)
|
||||
| null us = noop
|
||||
| otherwise = case M.lookup uu remotemap of
|
||||
Just r -> do
|
||||
let ls = unlines $ map (\u -> name r ++ ": " ++ u) us
|
||||
outputMessage noop ('\n' : indent ls ++ "\n")
|
||||
Just r -> showLongNote $
|
||||
unlines $ map (\u -> name r ++ ": " ++ u) us
|
||||
Nothing -> noop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue