add some functions listing log files

Not used yet, will be used by copy-branch to generate the list of files
to copy.
This commit is contained in:
Joey Hess 2021-05-13 14:57:38 -04:00
parent 4ff8a1ae2b
commit 40ade7a515
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 23 additions and 4 deletions

20
Logs.hs
View file

@ -60,6 +60,26 @@ getLogVariety config f
logFilesToCache :: Int
logFilesToCache = 2
{- All the log files that might contain information about a key. -}
keyLogFiles :: GitConfig -> Key -> [RawFilePath]
keyLogFiles config k =
[ locationLogFile config k
, urlLogFile config k
, remoteStateLogFile config k
, metaDataLogFile config k
, remoteMetaDataLogFile config k
, remoteContentIdentifierLogFile config k
, chunkLogFile config k
] ++ oldurlLogs config k
{- All the log files that do not contain information specific to a key. -}
nonKeyLogFiles :: [RawFilePath]
nonKeyLogFiles = concat
[ topLevelNewUUIDBasedLogs
, topLevelOldUUIDBasedLogs
, otherTopLevelLogs
]
{- All the old-format uuid-based logs stored in the top of the git-annex branch. -}
topLevelOldUUIDBasedLogs :: [RawFilePath]
topLevelOldUUIDBasedLogs =