Avoid loading cluster log at startup
This fixes a problem with datalad's test suite, where loading the cluster log happened to cause the git-annex branch commits to take a different shape, with an additional commit. It's also faster though, since many commands don't need the cluster log. Just fill Annex.clusters with a thunk. Sponsored-by: the NIH-funded NICEMAN (ReproNim TR&D3) project
This commit is contained in:
parent
7c6c3e703b
commit
3a1f39fbdf
7 changed files with 30 additions and 7 deletions
2
Annex.hs
2
Annex.hs
|
@ -197,7 +197,7 @@ data AnnexState = AnnexState
|
|||
, preferredcontentmap :: Maybe (FileMatcherMap Annex)
|
||||
, requiredcontentmap :: Maybe (FileMatcherMap Annex)
|
||||
, remoteconfigmap :: Maybe (M.Map UUID RemoteConfig)
|
||||
, clusters :: Maybe Clusters
|
||||
, clusters :: Maybe (Annex Clusters)
|
||||
, forcetrust :: TrustMap
|
||||
, trustmap :: Maybe TrustMap
|
||||
, groupmap :: Maybe GroupMap
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue