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

Safe HaskellNone
LanguageHaskell2010

Darcs.Patch.Index.Types

Synopsis

Documentation

data FileId #

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)

Constructors

FileId 

Fields

Instances
Eq FileId # 
Instance details

Defined in Darcs.Patch.Index.Types

Methods

(==) :: FileId -> FileId -> Bool #

(/=) :: FileId -> FileId -> Bool #

Ord FileId # 
Instance details

Defined in Darcs.Patch.Index.Types

Show FileId # 
Instance details

Defined in Darcs.Patch.Index.Types

Binary FileId # 
Instance details

Defined in Darcs.Patch.Index.Types

Methods

put :: FileId -> Put #

get :: Get FileId #

putList :: [FileId] -> Put #

showFileId :: FileId -> String #

Convert FileId to string

newtype PatchId #

The PatchId identifies a patch and can be created from a PatchInfo with makePatchname

Constructors

PID 

Fields

Instances
Eq PatchId # 
Instance details

Defined in Darcs.Patch.Index.Types

Methods

(==) :: PatchId -> PatchId -> Bool #

(/=) :: PatchId -> PatchId -> Bool #

Ord PatchId # 
Instance details

Defined in Darcs.Patch.Index.Types

Show PatchId # 
Instance details

Defined in Darcs.Patch.Index.Types

Binary PatchId # 
Instance details

Defined in Darcs.Patch.Index.Types

Methods

put :: PatchId -> Put #

get :: Get PatchId #

putList :: [PatchId] -> Put #

data PatchMod a #

This is used to track changes to files

Constructors

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

Instances
Functor PatchMod # 
Instance details

Defined in Darcs.Patch.Index.Types

Methods

fmap :: (a -> b) -> PatchMod a -> PatchMod b #

(<$) :: a -> PatchMod b -> PatchMod a #

Eq a => Eq (PatchMod a) # 
Instance details

Defined in Darcs.Patch.Index.Types

Methods

(==) :: PatchMod a -> PatchMod a -> Bool #

(/=) :: PatchMod a -> PatchMod a -> Bool #

Show a => Show (PatchMod a) # 
Instance details

Defined in Darcs.Patch.Index.Types

Methods

showsPrec :: Int -> PatchMod a -> ShowS #

show :: PatchMod a -> String #

showList :: [PatchMod a] -> ShowS #