12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879(*
* Copyright (c) 2022-2022 Tarides <contact@tarides.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*)open!ImportmoduletypeS=sigmoduleFm:File_manager.SwithmoduleIo=Io.UnixmoduleAsync:Async.SmoduleDict:Dict.SwithmoduleFm=FmmoduleErrs:Io_errors.SwithmoduleIo=Fm.IomoduleDispatcher:Dispatcher.SwithmoduleFm=Fmtypehashtypekey=hashPack_key.t[@@derivingirmin]moduleHash:sigvalhash_size:intendmoduleContents_store:sigtype'atvalpurge_lru:'at->unitendmoduleNode_value:sigtypettypestepvalpred:t->(stepoption*[`Contentsofkey|`Inodeofkey|`Nodeofkey])listendmoduleNode_store:sigtype'atvalv:config:Irmin.Backend.Conf.t->fm:Fm.t->dict:Dict.t->dispatcher:Dispatcher.t->readtvalunsafe_find:check_integrity:bool->[<read]t->key->Node_value.toptionvalpurge_lru:'at->unitendmoduleCommit_value:sigtypetvalnode:t->keyvalparents:t->keylistendmoduleCommit_store:Pack_store.Swithtypevalue=Commit_value.tandtypekey=keyandtypefile_manager=Fm.tandtypedict=Dict.tandtypedispatcher=Dispatcher.tandtypehash=hashend