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

Safe HaskellNone
LanguageHaskell2010

Darcs.UI.Commands

Synopsis

Documentation

data WrappedCommand where Source

A WrappedCommand is a DarcsCommand where the options type has been hidden

Constructors

WrappedCommand :: DarcsCommand parsedFlags -> WrappedCommand 

data CommandArgs where Source

Constructors

CommandOnly :: DarcsCommand parsedFlags -> CommandArgs 
SuperCommandOnly :: DarcsCommand parsedFlags -> CommandArgs 
SuperCommandSub :: DarcsCommand parsedFlags1 -> DarcsCommand parsedFlags2 -> CommandArgs 

putInfo :: [DarcsFlag] -> Doc -> IO () Source

printDryRunMessageAndExit :: (RepoPatch p, ApplyState p ~ Tree) => String -> Verbosity -> Summary -> DryRun -> XmlOutput -> Bool -> FL (PatchInfoAnd p) wX wY -> IO () Source

printDryRunMessageAndExit action flags patches prints a string representing the action that would be taken if the --dry-run option had not been passed to darcs. Then darcs exits successfully. action is the name of the action being taken, like "push" flags is the list of flags which were sent to darcs patches is the sequence of patches which would be touched by action.

setEnvDarcsPatches :: (RepoPatch p, ApplyState p ~ Tree) => FL (PatchInfoAnd p) wX wY -> IO () Source

Set the DARCS_PATCHES and DARCS_PATCHES_XML environment variables with info about the given patches, for use in post-hooks.

setEnvDarcsFiles :: (PatchInspect p, Patchy p) => p wX wY -> IO () Source

Set the DARCS_FILES environment variable to the files touched by the given patch, one per line, for use in post-hooks.

formatPath :: String -> String Source

Format a path for screen output, so that the user sees where the path begins and ends. Could (should?) also warn about unprintable characters here.