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

Safe HaskellNone

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

cname :: FileName
 
count :: Int
 

parseFileId :: String -> FileId

Parse FileId from a string

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

patchId :: SHA1
 

data DatedFilePath

describes a filepath that is interpreted relative to a certain point in the history of the repository. The point is given by Just pid which denotes the history up to (including) pid or Nothing which denotes the history including the last patch

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