forget: Preserve currently exported trees
Avoiding problems with exporttree remotes in some unusual circumstances. This commit was sponsored by Brett Eisenberg on Patreon.
This commit is contained in:
parent
0bcf155e11
commit
8e7dc958d2
7 changed files with 36 additions and 8 deletions
|
@ -17,6 +17,7 @@ module Logs.Export.Pure (
|
|||
exportedTreeishes,
|
||||
incompleteExportedTreeishes,
|
||||
parseExportLog,
|
||||
parseExportLogMap,
|
||||
buildExportLog,
|
||||
updateForExportChange,
|
||||
) where
|
||||
|
@ -25,6 +26,7 @@ import Annex.Common
|
|||
import qualified Git
|
||||
import Logs.MapLog
|
||||
|
||||
import qualified Data.Map as M
|
||||
import qualified Data.ByteString.Lazy as L
|
||||
import qualified Data.Attoparsec.ByteString.Lazy as A
|
||||
import qualified Data.Attoparsec.ByteString.Char8 as A8
|
||||
|
@ -72,6 +74,9 @@ data ExportChange = ExportChange
|
|||
parseExportLog :: L.ByteString -> MapLog ExportParticipants Exported
|
||||
parseExportLog = parseMapLog exportParticipantsParser exportedParser
|
||||
|
||||
parseExportLogMap :: L.ByteString -> M.Map ExportParticipants Exported
|
||||
parseExportLogMap = simpleMap . parseExportLog
|
||||
|
||||
buildExportLog :: MapLog ExportParticipants Exported -> Builder
|
||||
buildExportLog = buildMapLog buildExportParticipants buildExported
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue