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

Safe Haskell | None
Language | Haskell2010

Darcs.Repository.Prefs

Synopsis

- addToPreflist :: String -> String -> IO ()
- deleteSources :: IO ()
- getPreflist :: String -> IO [String]
- setPreflist :: String -> [String] -> IO ()
- getGlobal :: String -> IO [String]
- environmentHelpHome :: ([String], [String])
- defaultrepo :: RemoteRepos -> AbsolutePath -> [String] -> IO [String]
- getDefaultRepoPath :: IO (Maybe String)
- addRepoSource :: String -> DryRun -> RemoteRepos -> SetDefault -> IO ()
- getPrefval :: String -> IO (Maybe String)
- setPrefval :: String -> String -> IO ()
- changePrefval :: String -> String -> String -> IO ()
- defPrefval :: String -> String -> IO String
- writeDefaultPrefs :: IO ()
- boringRegexps :: IO [Regex]
- boringFileFilter :: IO ([FilePath] -> [FilePath])
- darcsdirFilter :: [FilePath] -> [FilePath]
- data FileType
  - = BinaryFile
  - | TextFile
- filetypeFunction :: IO (FilePath -> FileType)
- getCaches :: UseCache -> String -> IO Cache
- binariesFileHelp :: [String]
- boringFileHelp :: [String]
- globalCacheDir :: IO (Maybe FilePath)
- globalPrefsDirDoc :: String
- globalPrefsDir :: IO (Maybe FilePath)
- oldGlobalCacheDir :: IO (Maybe FilePath)

# Documentation

addToPreflist :: String -> String -> IO () #

deleteSources :: IO () #

delete references to other repositories. Used when cloning to a ssh destination. Assume the current working dir is the repository.

getPreflist :: String -> IO [String] #

setPreflist :: String -> [String] -> IO () #

getGlobal :: String -> IO [String] #

environmentHelpHome :: ([String], [String]) #

defaultrepo :: RemoteRepos -> AbsolutePath -> [String] -> IO [String] #

getDefaultRepoPath :: IO (Maybe String) #

addRepoSource :: String -> DryRun -> RemoteRepos -> SetDefault -> IO () #

addRepoSource adds a new entry to _darcsprefsrepos and sets it as default in _darcsprefsdefaultrepo, unless --no-set-default or --dry-run is passed, or it is the same repository as the current one.

getPrefval :: String -> IO (Maybe String) #

setPrefval :: String -> String -> IO () #

changePrefval :: String -> String -> String -> IO () #

defPrefval :: String -> String -> IO String #

writeDefaultPrefs :: IO () #

boringRegexps :: IO [Regex] #

boringRegexps returns a list of the boring regexps, from the local and global prefs/boring files. Any invalid regexps are filtered, preventing an exception in (potentially) pure code, when the regexps are used.

boringFileFilter :: IO ([FilePath] -> [FilePath]) #

darcsdirFilter :: [FilePath] -> [FilePath] #

data FileType #

Constructors

BinaryFile |
TextFile |

Instances

Eq FileType # |
Methods (==) :: FileType -> FileType -> Bool # (/=) :: FileType -> FileType -> Bool #

filetypeFunction :: IO (FilePath -> FileType) #

getCaches :: UseCache -> String -> IO Cache #

binariesFileHelp :: [String] #

boringFileHelp :: [String] #

globalCacheDir :: IO (Maybe FilePath) #

globalPrefsDirDoc :: String #

The relative path of the global preference directory; `~/.darcs` on Unix, and `%APPDATA%/darcs` on Windows. This is used for online documentation.

globalPrefsDir :: IO (Maybe FilePath) #

The path of the global preference directory; `~/.darcs` on Unix, and `%APPDATA%/darcs` on Windows.

oldGlobalCacheDir :: IO (Maybe FilePath) #

oldGlobalCacheDir is the old cache path `~.darcscache` now ony used with read-only access.