duniverse diff: check for hashes on both r and l

This commit is contained in:
Hannes Mehnert 2023-05-31 17:11:47 +02:00
parent 62965d4f90
commit 12383cbd06

View file

@ -93,9 +93,14 @@ let duniverse_diff l r =
(* l and r are lists of pairs, with the hash kind and its value *)
List.for_all (fun (h, v) ->
match List.assoc_opt h r with
| None -> true
| None -> false
| Some v' -> String.equal v v')
l
l &&
List.for_all (fun (h, v) ->
match List.assoc_opt h l with
| None -> false
| Some v' -> String.equal v v')
r
in
let _ =
M.merge (fun key l r ->