We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3cf404d + 26e65b1 commit 660862dCopy full SHA for 660862d
misc/mapdeps.erl
@@ -85,9 +85,17 @@ map_rebar(BaseDir, Path, Acc) ->
85
{ok, Opts} ->
86
Deps = proplists:get_value(deps, Opts, []),
87
lists:foldl(
88
- fun({DepName, _, {_,_,V} }, A) ->
+ fun(Dep, A) ->
89
+ {DepName,VerStr} =
90
+ case Dep of
91
+ {N, {_,_,V}} -> {N, ver(V)};
92
+ {N, {_,_} } -> {N, "HEAD"};
93
+ {N, _, {_,_,V}} -> {N, ver(V)};
94
+ {N, _, {_,_} } -> {N, "HEAD"};
95
+ {N, _} when is_atom(N) -> {N, "'hex'"};
96
+ N when is_atom(N) -> {N, "'hex'"}
97
+ end,
98
From = app_name(Path),
- VerStr = ver(V),
99
To = {atom_to_list(DepName), VerStr},
100
case ordsets:is_element({To, From}, A) of
101
true ->
@@ -115,7 +123,10 @@ app_name(Path) ->
115
123
filename:basename(filename:dirname(Path)).
116
124
117
125
file_start() ->
118
- io:format(standard_io, "digraph {~n", []).
126
+ io:format(standard_io,
127
+ "digraph {~n"
128
+ " graph [ overlap=scale ]~n~n",
129
+ []).
119
130
120
131
file_end() ->
121
132
io:format(standard_io, "}~n", []).
0 commit comments