darcs-2.2.0: a distributed, interactive, smart revision control systemSource codeContentsIndex
Darcs.PopulationData
Synopsis
data Population = Pop {
popState :: PatchInfo
popTree :: PopTree
}
data PopTree
= PopDir !Info ![PopTree]
| PopFile !Info
data Info = Info {
nameI :: !ByteString
modifiedByI :: !PatchInfo
modifiedHowI :: !DirMark
createdByI :: !(Maybe PatchInfo)
creationNameI :: !(Maybe ByteString)
}
setPopState :: PatchInfo -> Population -> Population
notModified :: Info -> Bool
setState :: Info -> PatchInfo -> Info
data DirMark
= AddedFile
| RemovedFile
| MovedFile String
| ModifiedFile
| DullFile
| AddedDir
| RemovedDir
| MovedDir !String
| DullDir
getPopFrom :: FilePath -> PatchInfo -> IO Population
Documentation
data Population Source
the population of a darcs repository (simpler Slurpy)
Constructors
Pop
popState :: PatchInfothe state when last modified
popTree :: PopTreethe directory listing
show/hide Instances
data PopTree Source
directory listing
Constructors
PopDir !Info ![PopTree]
PopFile !Info
show/hide Instances
data Info Source
Constructors
Info
nameI :: !ByteStringname of the element
modifiedByI :: !PatchInfolast patch modifying this element
modifiedHowI :: !DirMarkhow was it modified
createdByI :: !(Maybe PatchInfo)this can be unknown when restored backwards!
creationNameI :: !(Maybe ByteString)the original name of the element
show/hide Instances
setPopState :: PatchInfo -> Population -> PopulationSource
notModified :: Info -> BoolSource
was an Info record not modified?
setState :: Info -> PatchInfo -> InfoSource
set the modifier for an Info record
data DirMark Source
info of a directory member
Constructors
AddedFile
RemovedFile
MovedFile String
ModifiedFile
DullFile
AddedDir
RemovedDir
MovedDir !String
DullDir
show/hide Instances
getPopFrom :: FilePath -> PatchInfo -> IO PopulationSource

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.

Produced by Haddock version 2.4.2