]> matita.cs.unibo.it Git - helm.git/commitdiff
aliases are now compared not only looking at the domain_item but also looking at...
authorAndrea Asperti <andrea.asperti@unibo.it>
Mon, 11 Jul 2005 08:52:46 +0000 (08:52 +0000)
committerAndrea Asperti <andrea.asperti@unibo.it>
Mon, 11 Jul 2005 08:52:46 +0000 (08:52 +0000)
helm/matita/matitaSync.ml

index 29e19c690ea20744954a79b4bdcc260d007d6324..f42dad76927cb693cf15c8537a95d326b750103e 100644 (file)
@@ -34,7 +34,16 @@ let alias_diff ~from status =
        if not (Map.mem domain_item from.aliases) then
          Map.add domain_item codomain_item acc
        else
-         acc)
+         begin
+           try 
+             let description1 = fst(Map.find domain_item from.aliases) in
+             let description2 = fst(Map.find domain_item status.aliases) in
+             if description1 <> description2 then
+               Map.add domain_item codomain_item acc
+             else
+               acc 
+           with Not_found -> acc
+         end)
     status.aliases Map.empty
 
 let set_proof_aliases status aliases =