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

Safe HaskellNone
LanguageHaskell2010

Darcs.UI.Commands.Util

Synopsis

Documentation

filterExistingPaths :: (RepoPatch p, ApplyState p ~ Tree) => Repository rt p wR wU wT -> Verbosity -> UseIndex -> ScanKnown -> LookForMoves -> [SubPath] -> IO ([SubPath], [SubPath]) Source #

Given a repository and two common command options, classify the given list of subpaths according to whether they exist in the pristine or working tree. Paths which are neither in working nor pristine are reported and dropped. The result is a pair of path lists: those that exist only in the working tree, and those that exist in pristine or working.

printDryRunMessageAndExit :: (RepoPatch p, ApplyState p ~ Tree) => String -> Verbosity -> Summary -> DryRun -> XmlOutput -> Bool -> FL (PatchInfoAnd rt 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.

expandDirs :: Bool -> [SubPath] -> IO [SubPath] Source #

For each directory in the list of SubPaths, add all paths under that directory to the list. If the first argument is True, then include even boring files.

This is used by the add and remove commands to handle the --recursive option.

checkUnrelatedRepos :: RepoPatch p => Bool -> PatchSet rt p wStart wX -> PatchSet rt p wStart wY -> IO () Source #

repoTags :: PatchSet rt p wX wY -> IO [String] Source #