| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Darcs.UI.Commands.Record
- record :: DarcsCommand RecordConfig
- commit :: DarcsCommand RecordConfig
- getLog :: forall prim wX wY. (Patchy prim, PrimPatch prim) => Maybe String -> Bool -> Logfile -> Maybe AskLongComment -> Maybe (String, [String]) -> FL prim wX wY -> IO (String, [String], Maybe String)
- recordConfig :: [DarcsFlag] -> RecordConfig
- data RecordConfig = RecordConfig {- patchname :: Maybe String
- author :: Maybe String
- testChanges :: TestChanges
- interactive :: Maybe Bool
- pipe :: Bool
- askDeps :: Bool
- askLongComment :: Maybe AskLongComment
- lookfor :: LookFor
- _workingRepoDir :: Maybe String
- withContext :: WithContext
- diffAlgorithm :: DiffAlgorithm
- verbosity :: Verbosity
- logfile :: Logfile
- compress :: Compression
- useIndex :: UseIndex
- umask :: UMask
- sse :: SetScriptsExecutable
- useCache :: UseCache
 
Documentation
Arguments
| :: (Patchy prim, PrimPatch prim) | |
| => Maybe String | patchname option | 
| -> Bool | pipe option | 
| -> Logfile | logfile option | 
| -> Maybe AskLongComment | askLongComment option | 
| -> Maybe (String, [String]) | possibly an existing patch name and long description | 
| -> FL prim wX wY | changes to record | 
| -> IO (String, [String], Maybe String) | patch name, long description and possibly the path to the temporary file that should be removed later | 
Get the patch name and long description from one of
- the configuration (flags, defaults, hard-coded)
- an existing log file
- stdin (e.g. a pipe)
- a text editor
It ensures the patch name is not empty nor starts with the prefix TAG.
The last result component is a possible path to a temporary file that should be removed later.
recordConfig :: [DarcsFlag] -> RecordConfig Source
data RecordConfig Source
Constructors
| RecordConfig | |
| Fields 
 | |