darcs-2.2.1: a distributed, interactive, smart revision control systemSource codeContentsIndex
Darcs.Repository.Format
Synopsis
newtype RepoFormat = RF [[ByteString]]
data RepoProperty
= Darcs1_0
| Darcs2
| HashedInventory
identifyRepoFormat :: String -> IO (Either String RepoFormat)
create_repo_format :: [DarcsFlag] -> RepoFormat
writeRepoFormat :: RepoFormat -> FilePath -> IO ()
write_problem :: RepoFormat -> Maybe String
read_problem :: RepoFormat -> Maybe String
readfrom_and_writeto_problem :: RepoFormat -> RepoFormat -> Maybe String
format_has :: RepoProperty -> RepoFormat -> Bool
format_has_together :: [RepoProperty] -> RepoFormat -> Bool
Documentation
newtype RepoFormat Source
RepoFormat is the representation of the format of a repository. Each sublist corresponds to a line in the format file. Each line is decomposed into words.
Constructors
RF [[ByteString]]
show/hide Instances
data RepoProperty Source
Constructors
Darcs1_0
Darcs2
HashedInventory
identifyRepoFormat :: String -> IO (Either String RepoFormat)Source
identifyRepoFormat URL identifies the format of the repository at the given address. Return Left reason if it fails, where reason explains why we weren't able to identify the format.
create_repo_format :: [DarcsFlag] -> RepoFormatSource
writeRepoFormat :: RepoFormat -> FilePath -> IO ()Source
writeRepoFormat writes the repo format to the given file.
write_problem :: RepoFormat -> Maybe StringSource
write_problem from tells if we can write to a repo in format form. it returns Nothing if there's no problem writing to such a repository.
read_problem :: RepoFormat -> Maybe StringSource
read_problem from tells if we can write to a repo in format form. it returns Nothing if there's no problem reading from such a repository.
readfrom_and_writeto_problem :: RepoFormat -> RepoFormat -> Maybe StringSource
write_problem from tells if we can read and write to a repo in format form. it returns Nothing if there's no problem reading and writing to such a repository.
format_has :: RepoProperty -> RepoFormat -> BoolSource
format_has_together :: [RepoProperty] -> RepoFormat -> BoolSource
Produced by Haddock version 2.4.2