Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data FileId = FileId {
- cname :: AnchoredPath
- count :: Int
- showFileId :: FileId -> String
- newtype PatchId = PID {}
- pid2string :: PatchId -> String
- data PatchMod a
- = PTouch a
- | PCreateFile a
- | PCreateDir a
- | PRename a a
- | PRemove a
- | PInvalid a
- | PDuplicateTouch a
- short :: PatchId -> Word32
- zero :: PatchId
Documentation
The FileId for a file consists of the FilePath (creation name) and an index. The index denotes how many files with the same name have been added before (and subsequently deleted or moved)
FileId | |
|
showFileId :: FileId -> String Source #
Convert FileId to string
The PatchId identifies a patch and can be created from a PatchInfo with makePatchname
pid2string :: PatchId -> String Source #
This is used to track changes to files
PTouch a | |
PCreateFile a | |
PCreateDir a | |
PRename a a | |
PRemove a | |
PInvalid a | This is an invalid patch e.g. there is a patch 'Move Autoconf.lhs Autoconf.lhs.in' where there is no Autoconf.lhs in the darcs repo |
PDuplicateTouch a | this is used for duplicate patches that don't have any effect, but we still want to keep track of them |