Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
### 0.9.8

* Fix missing zero padding for date pretty-printing (#228, @dsheets)
* Update the tests to use `ocaml-git.1.6.0`
* Improve the style of the HTTP commit graph.
* Constraint the string tags to contain only alpha-numeric characters
and few mores (`-`, `_` and `/`) (#186)
* Fix a race condition in `Irmin.clone`. (#221)
Expand Down
3 changes: 2 additions & 1 deletion lib/irmin.mli
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ module Contents: sig

module Cstruct: S with type t = Cstruct.t and module Path = Path.String_list
(** Cstruct values where only the last modified value is kept on
merge. If the value has been modified concurrently, the [merge[
merge. If the value has been modified concurrently, the [merge]
function raises [Conflict]. *)

(** Contents store. *)
Expand Down Expand Up @@ -1577,6 +1577,7 @@ module Private: sig
and type commit = S.key

end

(** The signature for slices. *)
module Slice: sig

Expand Down
20 changes: 14 additions & 6 deletions lib_test/test_store.ml
Original file line number Diff line number Diff line change
Expand Up @@ -894,17 +894,25 @@ module Make (S: Irmin.S) = struct
match !result with None -> assert false | Some t -> t
in
let clone () =
S.clone task (t "clone") (S.Tag.of_hum "test") >|= function
S.clone task (t "clone") (S.Tag.of_hum "test") >>= function
| `Ok t ->
begin match !result with
| None -> result := Some t
| Some _ -> Alcotest.fail "should be duplicated!"
end
end;
Lwt.return_unit
| `Duplicated_tag ->
begin match !result with
| None -> Alcotest.fail "should not be duplicated!"
| Some _ -> ()
end
let rec wait n =
begin match !result with
| None ->
if n <= 0 then Alcotest.fail "should not be duplicated!"
else
Lwt_unix.sleep 0.1 >>= fun () ->
wait (n-1)
| Some _ -> Lwt.return_unit
end
in
wait 10
| `Empty_head -> Alcotest.fail "empty head"
in
S.remove_tag (t "prepare") (S.Tag.of_hum "test") >>= fun () ->
Expand Down