darcs

Darcs.PopulationData

Synopsis

Documentation

data Population

the population of a darcs repository (simpler Slurpy)

Constructors

Pop 

Fields

popState :: PatchInfo

the state when last modified

popTree :: PopTree

the directory listing

data PopTree

directory listing

Constructors

PopDir !Info ![PopTree] 
PopFile !Info 

data Info

Constructors

Info 

Fields

nameI :: !ByteString

name of the element

modifiedByI :: !PatchInfo

last patch modifying this element

modifiedHowI :: !DirMark

how was it modified

createdByI :: !(Maybe PatchInfo)

this can be unknown when restored backwards!

creationNameI :: !(Maybe ByteString)

the original name of the element

Instances

notModified :: Info -> Bool

was an Info record not modified?

setState :: Info -> PatchInfo -> Info

set the modifier for an Info record

getPopFrom :: FilePath -> PatchInfo -> IO Population

read the population from a given directory dirname all folders and documents get the given time t

This needs to be here in order to avoid a circular dependency between Population and Pristine.