generate more compact git-annex branch for imports
Especially from borg, where the content identifier logs all end up being the same identical file! But also, for other imports, the location tracking logs can, in some cases, be identical files. Bonus optimisation: Avoid looking up (and parsing when set) GIT_ANNEX_VECTOR_CLOCK env var every time a log is written to. Although the lookup does happen at startup even when no log will be written now.
This commit is contained in:
parent
f8aadbfb9b
commit
6280af2901
26 changed files with 133 additions and 49 deletions
|
@ -32,7 +32,7 @@ import Logs.File
|
|||
|
||||
scheduleSet :: UUID -> [ScheduledActivity] -> Annex ()
|
||||
scheduleSet uuid@(UUID _) activities = do
|
||||
c <- liftIO currentVectorClock
|
||||
c <- currentVectorClock
|
||||
Annex.Branch.change scheduleLog $
|
||||
buildLogOld byteString
|
||||
. changeLog c uuid (encodeBS val)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue