OpamRepositoryBackendSignature for repository handlers and some helpers for the repository type
type update = | Update_full of OpamRepositoryRoot.tNo previous known state, the full contents have been put in the given directory
*)| Update_patch of OpamTypes.filename * Patch.t listA patch file that corresponds to the update, i.e. applying it to the local repository with 'patch -p1' would get it to the upstream state, and its and its list of file-level operations
*)| Update_emptyThe repository is already up to date
*)| Update_err of exnFailed to obtain the update
*)Type returned by repository updates.
module type S = sig ... endBackend signature
val to_string : OpamTypes.repository -> stringPretty-print
val to_json : OpamTypes.repository -> OpamTypes.jsonval compare : OpamTypes.repository -> OpamTypes.repository -> intCompare repositories
val check_digest : OpamTypes.filename -> OpamHash.t option -> boolcheck_digest file expected check that the file digest is the one expected.
val job_text :
OpamTypes.repository_name ->
string ->
'a OpamProcess.job ->
'a OpamProcess.jobAdds a label to the given job, for the corresponding repository name and action
val get_diff :
OpamRepositoryRoot.t ->
OpamRepositoryRoot.t ->
(OpamTypes.filename * Patch.t list) optionget_diff dir1 dir2 computes the diff between the two repository root (directory or tar gz archive), returns None if they are equal, and the corresponding patch and the list of file-changes otherwise.