implement annex.tune.branchhash1
I hope this doesn't impact speed much -- it does have to pull out a value from Annex state every time it accesses the branch now. The test case I dropped has never caught any problems that I can remember, and would have been rather difficult to convert.
This commit is contained in:
parent
009bd050c1
commit
b0575c621f
11 changed files with 78 additions and 64 deletions
|
@ -12,6 +12,7 @@ import qualified Git
|
|||
import qualified Git.Command
|
||||
import qualified Git.Ref
|
||||
import qualified Annex.Branch
|
||||
import qualified Annex
|
||||
import Annex.Content
|
||||
import Utility.Tmp
|
||||
import Logs
|
||||
|
@ -47,7 +48,8 @@ upgrade = do
|
|||
|
||||
e <- liftIO $ doesDirectoryExist old
|
||||
when e $ do
|
||||
mapM_ (\(k, f) -> inject f $ locationLogFile k) =<< locationLogs
|
||||
config <- Annex.getGitConfig
|
||||
mapM_ (\(k, f) -> inject f $ locationLogFile config k) =<< locationLogs
|
||||
mapM_ (\f -> inject f f) =<< logFiles old
|
||||
|
||||
saveState False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue