darcs-2.16.5: a distributed, interactive, smart revision control system

Safe Haskell | Safe-Inferred
Language | Haskell2010

Darcs.Repository.HashedIO

Synopsis

- copyHashed :: ProgressKey -> Cache -> WithWorkingDir -> PristineHash -> IO ()
- copyPartialsHashed :: Cache -> PristineHash -> [AnchoredPath] -> IO ()
- cleanHashdir :: Cache -> HashedDir -> [PristineHash] -> IO ()
- getHashedFiles :: FilePath -> [String] -> IO [String]
- pathsAndContents :: FilePath -> Cache -> PristineHash -> IO [(FilePath, ByteString)]

# Documentation

copyHashed :: ProgressKey -> Cache -> WithWorkingDir -> PristineHash -> IO () #

Grab a whole pristine tree from a hash, and, if asked, write files in the working tree.

copyPartialsHashed :: Cache -> PristineHash -> [AnchoredPath] -> IO () #

cleanHashdir :: Cache -> HashedDir -> [PristineHash] -> IO () #

getHashedFiles :: FilePath -> [String] -> IO [String] #

getHashedFiles returns all hash files targeted by files in hashroots in the hashdir directory.

pathsAndContents :: FilePath -> Cache -> PristineHash -> IO [(FilePath, ByteString)] #

Returns a list of pairs (FilePath, (strict) ByteString) of the pristine tree starting with the hash `root`. `path` should be either "." or end with "/" Separator "/" is used since this function is used to generate zip archives from pristine trees.