module Make:
Create a backend from a VCS
implementation.
val pull_url : OpamTypes.package ->
OpamTypes.dirname ->
string option ->
OpamTypes.address -> OpamTypes.generic_file OpamTypes.download
pull_url package local_dir checksum remote_url
pull the contents of
remote_url
into local_dir
. Can return either a file or a
directory. checksum
is the optional expected checksum.
val pull_repo : OpamTypes.repository -> unit
pull_repo
pull the contents of a repository.
val pull_archive : OpamTypes.repository ->
OpamTypes.filename -> OpamTypes.filename OpamTypes.download
pull_archive repo archive
pull archive
in the given
repository.
val revision : OpamTypes.repository -> OpamTypes.version option
Return the (optional) revision of a given repository. Only useful
for VCS backends.