ContentsIndex
Darcs.Repository.Format
Synopsis
data RepoProperty
= Darcs1_0
| Darcs2
| HashedInventory
newtype RepoFormat = RF [[ByteString]]
df :: FilePath
identifyRepoFormat :: String -> IO (Either String RepoFormat)
writeRepoFormat :: RepoFormat -> FilePath -> IO ()
parse_repo_format :: ByteString -> RepoFormat
default_repo_format :: RepoFormat
create_repo_format :: [DarcsFlag] -> RepoFormat
write_problem :: RepoFormat -> Maybe String
readfrom_and_writeto_problem :: RepoFormat -> RepoFormat -> Maybe String
read_problem :: RepoFormat -> Maybe String
is_known :: ByteString -> Bool
known_properties :: [RepoProperty]
justsOrNothing :: [Maybe x] -> Maybe [x]
format_has :: RepoProperty -> RepoFormat -> Bool
format_has_together :: [RepoProperty] -> RepoFormat -> Bool
rp2ps :: RepoProperty -> ByteString
Documentation
data RepoProperty
Constructors
Darcs1_0
Darcs2
HashedInventory
newtype RepoFormat
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
df :: FilePath
The file where the format information should be.
identifyRepoFormat :: String -> IO (Either String RepoFormat)
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.
writeRepoFormat :: RepoFormat -> FilePath -> IO ()
writeRepoFormat writes the repo format to the given file.
parse_repo_format :: ByteString -> RepoFormat
default_repo_format :: RepoFormat
The repo format we assume if we do not find a format file.
create_repo_format :: [DarcsFlag] -> RepoFormat
write_problem :: RepoFormat -> Maybe String
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.
readfrom_and_writeto_problem :: RepoFormat -> RepoFormat -> Maybe String
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.
read_problem :: RepoFormat -> Maybe String
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.
is_known :: ByteString -> Bool
Does this version of darcs know how to handle this property?
known_properties :: [RepoProperty]
This is the list of properties which this version of darcs knows how to handle.
justsOrNothing :: [Maybe x] -> Maybe [x]
format_has :: RepoProperty -> RepoFormat -> Bool
format_has_together :: [RepoProperty] -> RepoFormat -> Bool
rp2ps :: RepoProperty -> ByteString
Produced by Haddock version 2.4.2