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

Safe Haskell | None
Language | Haskell2010

Darcs.UI.Commands.Util

Synopsis

- announceFiles :: Verbosity -> Maybe [AnchoredPath] -> String -> IO ()
- filterExistingPaths :: forall (p :: Type -> Type -> Type) (rt :: AccessType) wU wR. (RepoPatch p, ApplyState p ~ Tree) => Repository rt p wU wR -> Verbosity -> DiffOpts -> [AnchoredPath] -> IO ([AnchoredPath], [AnchoredPath])
- testTentativeAndMaybeExit :: Tree IO -> [DarcsFlag] -> String -> String -> Maybe String -> IO ()
- printDryRunMessageAndExit :: forall (p :: Type -> Type -> Type) wX wY. RepoPatch p => String -> Verbosity -> WithSummary -> DryRun -> XmlOutput -> Bool -> FL (PatchInfoAnd p) wX wY -> IO ()
- getUniqueRepositoryName :: Bool -> FilePath -> IO FilePath
- getUniqueDPatchName :: FilePath -> IO FilePath
- doesDirectoryReallyExist :: FilePath -> IO Bool
- checkUnrelatedRepos :: forall (p :: Type -> Type -> Type) wX wY. RepoPatch p => Bool -> PatchSet p Origin wX -> PatchSet p Origin wY -> IO ()
- preselectPatches :: forall (p :: Type -> Type -> Type) (rt :: AccessType) wU wR. RepoPatch p => [DarcsFlag] -> Repository rt p wU wR -> IO ((PatchSet p :> FL (PatchInfoAnd p)) Origin wR)
- getLastPatches :: forall (p :: Type -> Type -> Type) wR. RepoPatch p => [MatchFlag] -> PatchSet p Origin wR -> (PatchSet p :> FL (PatchInfoAnd p)) Origin wR
- matchRange :: forall (p :: Type -> Type -> Type) wY. MatchableRP p => [MatchFlag] -> PatchSet p Origin wY -> Sealed2 (FL (PatchInfoAnd p))
- historyEditHelp :: Doc
- commonHelpWithPrefsTemplates :: Doc

# Documentation

announceFiles :: Verbosity -> Maybe [AnchoredPath] -> String -> IO () #

filterExistingPaths :: forall (p :: Type -> Type -> Type) (rt :: AccessType) wU wR. (RepoPatch p, ApplyState p ~ Tree) => Repository rt p wU wR -> Verbosity -> DiffOpts -> [AnchoredPath] -> IO ([AnchoredPath], [AnchoredPath]) #

Given a repository and two common command options, classify the given list of paths 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.

testTentativeAndMaybeExit :: Tree IO -> [DarcsFlag] -> String -> String -> Maybe String -> IO () #

printDryRunMessageAndExit :: forall (p :: Type -> Type -> Type) wX wY. RepoPatch p => String -> Verbosity -> WithSummary -> DryRun -> XmlOutput -> Bool -> FL (PatchInfoAnd p) wX wY -> IO () #

``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`.

getUniqueRepositoryName :: Bool -> FilePath -> IO FilePath #

getUniqueDPatchName :: FilePath -> IO FilePath #

doesDirectoryReallyExist :: FilePath -> IO Bool #

checkUnrelatedRepos :: forall (p :: Type -> Type -> Type) wX wY. RepoPatch p => Bool -> PatchSet p Origin wX -> PatchSet p Origin wY -> IO () #

preselectPatches :: forall (p :: Type -> Type -> Type) (rt :: AccessType) wU wR. RepoPatch p => [DarcsFlag] -> Repository rt p wU wR -> IO ((PatchSet p :> FL (PatchInfoAnd p)) Origin wR) #

getLastPatches :: forall (p :: Type -> Type -> Type) wR. RepoPatch p => [MatchFlag] -> PatchSet p Origin wR -> (PatchSet p :> FL (PatchInfoAnd p)) Origin wR #

matchRange :: forall (p :: Type -> Type -> Type) wY. MatchableRP p => [MatchFlag] -> PatchSet p Origin wY -> Sealed2 (FL (PatchInfoAnd p)) #

historyEditHelp :: Doc #

commonHelpWithPrefsTemplates :: Doc #