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

Safe Haskell | None

Darcs.Flags

Synopsis

- data DarcsFlag
  - = Help
  - | ListOptions
  - | NoTest
  - | Test
  - | OnlyChangesToFiles
  - | ChangesToAllFiles
  - | LeaveTestDir
  - | NoLeaveTestDir
  - | Timings
  - | Debug
  - | DebugVerbose
  - | DebugHTTP
  - | Verbose
  - | NormalVerbosity
  - | Quiet
  - | Target String
  - | Cc String
  - | Output AbsolutePathOrStd
  - | OutputAutoName AbsolutePath
  - | Subject String
  - | InReplyTo String
  - | Charset String
  - | SendmailCmd String
  - | Author String
  - | PatchName String
  - | OnePatch String
  - | SeveralPatch String
  - | AfterPatch String
  - | UpToPatch String
  - | TagName String
  - | LastN Int
  - | MaxCount Int
  - | PatchIndexRange Int Int
  - | NumberPatches
  - | OneTag String
  - | AfterTag String
  - | UpToTag String
  - | GenContext
  - | Context AbsolutePath
  - | Count
  - | LogFile AbsolutePath
  - | RmLogFile
  - | DontRmLogFile
  - | DistName String
  - | All
  - | Recursive
  - | NoRecursive
  - | Reorder
  - | RestrictPaths
  - | DontRestrictPaths
  - | AskDeps
  - | NoAskDeps
  - | IgnoreTimes
  - | DontIgnoreTimes
  - | LookForAdds
  - | NoLookForAdds
  - | AnyOrder
  - | CreatorHash String
  - | Intersection
  - | Union
  - | Complement
  - | Sign
  - | SignAs String
  - | NoSign
  - | SignSSL String
  - | HappyForwarding
  - | NoHappyForwarding
  - | Verify AbsolutePath
  - | VerifySSL AbsolutePath
  - | RemoteDarcsOpt String
  - | EditDescription
  - | NoEditDescription
  - | Toks String
  - | EditLongComment
  - | NoEditLongComment
  - | PromptLongComment
  - | KeepDate
  - | NoKeepDate
  - | AllowConflicts
  - | MarkConflicts
  - | NoAllowConflicts
  - | SkipConflicts
  - | Boring
  - | SkipBoring
  - | AllowCaseOnly
  - | DontAllowCaseOnly
  - | AllowWindowsReserved
  - | DontAllowWindowsReserved
  - | DontGrabDeps
  - | DontPromptForDependencies
  - | PromptForDependencies
  - | Compress
  - | NoCompress
  - | UnCompress
  - | WorkRepoDir String
  - | WorkRepoUrl String
  - | RemoteRepo String
  - | NewRepo String
  - | Reply String
  - | ApplyAs String
  - | MachineReadable
  - | HumanReadable
  - | Pipe
  - | Interactive
  - | DiffCmd String
  - | ExternalMerge String
  - | Summary
  - | NoSummary
  - | PauseForGui
  - | NoPauseForGui
  - | Unified
  - | NonUnified
  - | Reverse
  - | Forward
  - | Complete
  - | Lazy
  - | FixFilePath AbsolutePath AbsolutePath
  - | DiffFlags String
  - | XMLOutput
  - | ForceReplace
  - | OnePattern PatchMatch
  - | SeveralPattern PatchMatch
  - | AfterPattern PatchMatch
  - | UpToPattern PatchMatch
  - | NonApply
  - | NonVerify
  - | NonForce
  - | DryRun
  - | SetDefault Bool
  - | NoSetDefault Bool
  - | Disable
  - | SetScriptsExecutable
  - | DontSetScriptsExecutable
  - | Bisect
  - | UseHashedInventory
  - | UseFormat2
  - | UseNoWorkingDir
  - | UseWorkingDir
  - | NoUpdateWorking
  - | Sibling AbsolutePath
  - | Relink
  - | OptimizePristine
  - | OptimizeHTTP
  - | UpgradeFormat
  - | Files
  - | NoFiles
  - | Directories
  - | NoDirectories
  - | Pending
  - | NoPending
  - | PosthookCmd String
  - | NoPosthook
  - | AskPosthook
  - | RunPosthook
  - | PrehookCmd String
  - | NoPrehook
  - | AskPrehook
  - | RunPrehook
  - | UMask String
  - | StoreInMemory
  - | ApplyOnDisk
  - | NoHTTPPipelining
  - | Packs
  - | NoPacks
  - | NoCache
  - | AllowUnrelatedRepos
  - | Check
  - | Repair
  - | JustThisRepo
  - | NullFlag
  - | RecordRollback
  - | NoRecordRollback
  - | NoAmendUnrecord
  - | AmendUnrecord
- data Compression
  - = NoCompression
  - | GzipCompression
- data UseIndex
  - = UseIndex
  - | IgnoreIndex
- data ScanKnown
  - = ScanKnown
  - | ScanAll
  - | ScanBoring
- data RemoteDarcs
  - = RemoteDarcs String
  - | DefaultRemoteDarcs
- compression :: [DarcsFlag] -> Compression
- remoteDarcs :: [DarcsFlag] -> RemoteDarcs
- diffingOpts :: [DarcsFlag] -> (UseIndex, ScanKnown)
- wantExternalMerge :: [DarcsFlag] -> Maybe String
- wantGuiPause :: [DarcsFlag] -> Bool
- isInteractive :: [DarcsFlag] -> Bool
- maxCount :: [DarcsFlag] -> Maybe Int
- willIgnoreTimes :: [DarcsFlag] -> Bool
- willRemoveLogFile :: [DarcsFlag] -> Bool
- isUnified :: [DarcsFlag] -> Bool
- isNotUnified :: [DarcsFlag] -> Bool
- doHappyForwarding :: [DarcsFlag] -> Bool
- includeBoring :: [DarcsFlag] -> Bool
- doAllowCaseOnly :: [DarcsFlag] -> Bool
- doAllowWindowsReserved :: [DarcsFlag] -> Bool
- doReverse :: [DarcsFlag] -> Bool
- usePacks :: [DarcsFlag] -> Bool
- showChangesOnlyToFiles :: [DarcsFlag] -> Bool
- rollbackInWorkingDir :: [DarcsFlag] -> Bool
- removeFromAmended :: [DarcsFlag] -> Bool
- defaultFlag :: [DarcsFlag] -> DarcsFlag -> [DarcsFlag] -> [DarcsFlag]

# Documentation

data DarcsFlag

The `DarcsFlag` type is a list of all flags that can ever be passed to darcs, or to one of its commands.

Constructors

Help |
ListOptions |
NoTest |
Test |
OnlyChangesToFiles |
ChangesToAllFiles |
LeaveTestDir |
NoLeaveTestDir |
Timings |
Debug |
DebugVerbose |
DebugHTTP |
Verbose |
NormalVerbosity |
Quiet |
Target String |
Cc String |
Output AbsolutePathOrStd |
OutputAutoName AbsolutePath |
Subject String |
InReplyTo String |
Charset String |
SendmailCmd String |
Author String |
PatchName String |
OnePatch String |
SeveralPatch String |
AfterPatch String |
UpToPatch String |
TagName String |
LastN Int |
MaxCount Int |
PatchIndexRange Int Int |
NumberPatches |
OneTag String |
AfterTag String |
UpToTag String |
GenContext |
Context AbsolutePath |
Count |
LogFile AbsolutePath |
RmLogFile |
DontRmLogFile |
DistName String |
All |
Recursive |
NoRecursive |
Reorder |
RestrictPaths |
DontRestrictPaths |
AskDeps |
NoAskDeps |
IgnoreTimes |
DontIgnoreTimes |
LookForAdds |
NoLookForAdds |
AnyOrder |
CreatorHash String |
Intersection |
Union |
Complement |
Sign |
SignAs String |
NoSign |
SignSSL String |
HappyForwarding |
NoHappyForwarding |
Verify AbsolutePath |
VerifySSL AbsolutePath |
RemoteDarcsOpt String |
EditDescription |
NoEditDescription |
Toks String |
EditLongComment |
NoEditLongComment |
PromptLongComment |
KeepDate |
NoKeepDate |
AllowConflicts |
MarkConflicts |
NoAllowConflicts |
SkipConflicts |
Boring |
SkipBoring |
AllowCaseOnly |
DontAllowCaseOnly |
AllowWindowsReserved |
DontAllowWindowsReserved |
DontGrabDeps |
DontPromptForDependencies |
PromptForDependencies |
Compress |
NoCompress |
UnCompress |
WorkRepoDir String |
WorkRepoUrl String |
RemoteRepo String |
NewRepo String |
Reply String |
ApplyAs String |
MachineReadable |
HumanReadable |
Pipe |
Interactive |
DiffCmd String |
ExternalMerge String |
Summary |
NoSummary |
PauseForGui |
NoPauseForGui |
Unified |
NonUnified |
Reverse |
Forward |
Complete |
Lazy |
FixFilePath AbsolutePath AbsolutePath |
DiffFlags String |
XMLOutput |
ForceReplace |
OnePattern PatchMatch |
SeveralPattern PatchMatch |
AfterPattern PatchMatch |
UpToPattern PatchMatch |
NonApply |
NonVerify |
NonForce |
DryRun |
SetDefault Bool |
NoSetDefault Bool |
Disable |
SetScriptsExecutable |
DontSetScriptsExecutable |
Bisect |
UseHashedInventory |
UseFormat2 |
UseNoWorkingDir |
UseWorkingDir |
NoUpdateWorking |
Sibling AbsolutePath |
Relink |
OptimizePristine |
OptimizeHTTP |
UpgradeFormat |
Files |
NoFiles |
Directories |
NoDirectories |
Pending |
NoPending |
PosthookCmd String |
NoPosthook |
AskPosthook |
RunPosthook |
PrehookCmd String |
NoPrehook |
AskPrehook |
RunPrehook |
UMask String |
StoreInMemory |
ApplyOnDisk |
NoHTTPPipelining |
Packs |
NoPacks |
NoCache |
AllowUnrelatedRepos |
Check |
Repair |
JustThisRepo |
NullFlag |
RecordRollback |
NoRecordRollback |
NoAmendUnrecord |
AmendUnrecord |

Instances

Eq DarcsFlag |
Show DarcsFlag |

data Compression

Constructors

NoCompression |
GzipCompression |

data UseIndex

Constructors

UseIndex |
IgnoreIndex |

data ScanKnown

Constructors

ScanKnown | Just files already known to darcs
ScanAll | All files, i.e. look for new ones
ScanBoring | All files, even boring ones

data RemoteDarcs

Constructors

RemoteDarcs String |
DefaultRemoteDarcs |

compression :: [DarcsFlag] -> Compression

remoteDarcs :: [DarcsFlag] -> RemoteDarcs

diffingOpts :: [DarcsFlag] -> (UseIndex, ScanKnown)

wantExternalMerge :: [DarcsFlag] -> Maybe String

wantGuiPause :: [DarcsFlag] -> Bool

isInteractive :: [DarcsFlag] -> Bool

maxCount :: [DarcsFlag] -> Maybe Int

willIgnoreTimes :: [DarcsFlag] -> Bool

willRemoveLogFile :: [DarcsFlag] -> Bool

isUnified :: [DarcsFlag] -> Bool

isNotUnified :: [DarcsFlag] -> Bool

doHappyForwarding :: [DarcsFlag] -> Bool

includeBoring :: [DarcsFlag] -> Bool

doAllowCaseOnly :: [DarcsFlag] -> Bool

doAllowWindowsReserved :: [DarcsFlag] -> Bool

doReverse :: [DarcsFlag] -> Bool

usePacks :: [DarcsFlag] -> Bool

showChangesOnlyToFiles :: [DarcsFlag] -> Bool

rollbackInWorkingDir :: [DarcsFlag] -> Bool

removeFromAmended :: [DarcsFlag] -> Bool

defaultFlag

Arguments

:: [DarcsFlag] | distractors
-> DarcsFlag | default
-> [DarcsFlag] | flags
-> [DarcsFlag] | updated flags

Set flags to a default value, but only one has not already been provided