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

Safe HaskellNone
LanguageHaskell2010

Darcs.Patch.Index.Types

Synopsis

Documentation

data FileId Source

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 Source

Parse FileId from a string

showFileId :: FileId -> String Source

Convert FileId to string

newtype PatchId Source

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

Constructors

PID 

Fields

patchId :: SHA1
 

data DatedFilePath Source

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 Source

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