Skip to content

Commit d4de60f

Browse files
authored
Merge pull request #6 from codinuum/develop
Develop
2 parents ce2e04c + bc52bd8 commit d4de60f

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ You can run both Diff/AST and DiffViewer by the following line.
5858

5959
* GNU make
6060
* [OCaml](http://ocaml.org/) (>=4.11.1)
61-
* [OPAM](https://opam.ocaml.org/) (for installing the following packages: camlzip, cryptokit, csv, git-unix, menhir, ocamlnet, pxp, ulex, uuidm.)
62-
* [Volt](https://github.com/codinuum/volt)
61+
* [OPAM](https://opam.ocaml.org/) (for installing camlzip, cryptokit, csv, git-unix, menhir, ocamlnet, pxp, ulex, uuidm, and volt.)
6362

6463
### Compilation
6564

src/ast/analyzing/common/edit_base.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1357,11 +1357,12 @@ class ['node_t, 'tree_t] seq_base options = object (self : 'edits)
13571357

13581358
| Relabel(movrel, (uid1, info1, excludes1), (uid2, info2, excludes2)) ->
13591359
let ok =
1360+
!movrel ||
13601361
not minimal ||
13611362
let n1 = Info.get_node info1 in
13621363
let n2 = Info.get_node info2 in
13631364
n1#data#is_named_orig && n2#data#is_named_orig ||
1364-
(not n1#data#is_named || not n2#data#is_named) ||
1365+
(not n1#data#is_named && n2#data#is_named || n1#data#is_named && not n2#data#is_named) ||
13651366
n1#data#more_anonymized_label <> n2#data#more_anonymized_label
13661367
in
13671368
if ok then begin

src/ast/analyzing/engine/edit.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class formatters
4444

4545
class seq options = object (self)
4646
inherit [node_t, tree_t] seq_base options as super
47-
47+
(*
4848
method dump_diff_simple_ch ?(line_align=[]) (tree1 : 'tree_t) (tree2 : 'tree_t) =
4949
let formatters =
5050
new formatters
@@ -324,7 +324,7 @@ class seq options = object (self)
324324
Printf.fprintf ch "%s" footer
325325
326326
(* end of method dump_diff_ch *)
327-
327+
*)
328328
method dump_delta
329329
?(extra_ns_decls=[])
330330
(tree1 : 'tree_t)

src/ast/analyzing/git_storage.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ module F (S: Git.S) = struct
297297

298298
end (* of class Git_storage.F.tree *)
299299

300+
let opt_to_str = Xoption.to_string (fun x -> x)
300301

301302
let dump_value sha1 = function
302303
| Git.Value.Commit commit -> begin
@@ -305,7 +306,7 @@ module F (S: Git.S) = struct
305306
(String.concat " " (List.map Hash.to_hex (Commit.parents commit)));
306307
printf " AUTHOR: \"%s\"\n" (Commit.author commit).User.name;
307308
printf " COMMITTER: \"%s\"\n" (Commit.committer commit).User.name;
308-
printf " MESSAGE: \"%s\"\n" (Commit.message commit);
309+
printf " MESSAGE: \"%s\"\n" (opt_to_str (Commit.message commit));
309310
printf " TREE: %s\n" (Hash.to_hex (Commit.tree commit))
310311
end
311312
| Git.Value.Blob blob -> begin
@@ -320,7 +321,7 @@ module F (S: Git.S) = struct
320321
| Git.Tag.Tree -> "Tree");
321322
printf " TAGGER: \"%s\"\n"
322323
(match Tag.tagger tag with None -> "" | Some u -> u.User.name);
323-
printf " MESSAGE: \"%s\"\n" (Tag.message tag);
324+
printf " MESSAGE: \"%s\"\n" (opt_to_str (Tag.message tag));
324325
end
325326
| Tree tree -> begin
326327
printf "TREE:%s\n" (Hash.to_hex sha1);

0 commit comments

Comments
 (0)