loading from rootstore
This commit is contained in:
@ -0,0 +1,3 @@
|
|||||||
|
profile = default
|
||||||
|
version = 0.26.2
|
||||||
|
no-parse-toplevel-phrases
|
||||||
2
dune
2
dune
@ -20,7 +20,7 @@
|
|||||||
(libraries
|
(libraries
|
||||||
lwt
|
lwt
|
||||||
store
|
store
|
||||||
memtrace
|
;;memtrace
|
||||||
glfw-ocaml
|
glfw-ocaml
|
||||||
tgls
|
tgls
|
||||||
tgls.tgles2
|
tgls.tgles2
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
(lang dune 3.6)
|
(lang dune 3.15)
|
||||||
(name oplevel)
|
(name oplevel)
|
||||||
|
|||||||
@ -55,8 +55,7 @@ let main =
|
|||||||
|
|
||||||
Gl.clear_color 0.1 0.2 0.2 1.;
|
Gl.clear_color 0.1 0.2 0.2 1.;
|
||||||
|
|
||||||
Memtrace.trace_if_requested ();
|
(*Memtrace.trace_if_requested (); *)
|
||||||
|
|
||||||
let ctx =
|
let ctx =
|
||||||
Gv.create ~flags:Gv.CreateFlags.(antialias lor stencil_strokes) ()
|
Gv.create ~flags:Gv.CreateFlags.(antialias lor stencil_strokes) ()
|
||||||
in
|
in
|
||||||
@ -142,7 +141,8 @@ let main =
|
|||||||
in
|
in
|
||||||
|
|
||||||
ignore
|
ignore
|
||||||
(Toploop.use_input out_ppf (String "#use \"topfind\";;\n#list;;"));
|
(Toploop.use_input out_ppf
|
||||||
|
(String "#use \"topfind\";;\n#list;;#require \"lwt\";;"));
|
||||||
(* toplevel execution binding *)
|
(* toplevel execution binding *)
|
||||||
Ui.(
|
Ui.(
|
||||||
update_bindings ui
|
update_bindings ui
|
||||||
|
|||||||
2
store.ml
2
store.ml
@ -19,7 +19,7 @@ let test_populate () : t Lwt.t =
|
|||||||
|
|
||||||
let init_default upstream_url : Sync.db Lwt.t =
|
let init_default upstream_url : Sync.db Lwt.t =
|
||||||
S.Repo.v (Irmin_git.Conf.init "../rootstore") >>= fun repo ->
|
S.Repo.v (Irmin_git.Conf.init "../rootstore") >>= fun repo ->
|
||||||
S.of_branch repo "lablgtk" >>= fun t ->
|
S.of_branch repo "ogui" >>= fun t ->
|
||||||
S.remote upstream_url >>= fun upstream ->
|
S.remote upstream_url >>= fun upstream ->
|
||||||
(* (try Sync.pull_exn t upstream `Set >>= fun _ -> Lwt.return_unit
|
(* (try Sync.pull_exn t upstream `Set >>= fun _ -> Lwt.return_unit
|
||||||
with Invalid_argument a ->
|
with Invalid_argument a ->
|
||||||
|
|||||||
Reference in New Issue
Block a user