diff options
author | terry%mozilla.org <> | 1999-05-27 23:42:19 +0200 |
---|---|---|
committer | terry%mozilla.org <> | 1999-05-27 23:42:19 +0200 |
commit | 9b1a447768cf2986a77c341274a254f06fe9d79d (patch) | |
tree | 40ee05e53474612ea93c7375572d656609a6e4bd | |
parent | 65aeb54b2937560d2eb4ca46ad9a58c636afb361 (diff) | |
download | bugzilla-9b1a447768cf2986a77c341274a254f06fe9d79d.tar.gz bugzilla-9b1a447768cf2986a77c341274a254f06fe9d79d.tar.xz |
Make sure every node that we asked about shows up in the graph, even
if it doesn't have any dependency relationships.
-rwxr-xr-x | showdependencygraph.cgi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/showdependencygraph.cgi b/showdependencygraph.cgi index 1e3a02e2a..6ead9f84d 100755 --- a/showdependencygraph.cgi +++ b/showdependencygraph.cgi @@ -65,6 +65,7 @@ node [URL="${urlbase}show_bug.cgi?id=\\N", style=filled, color=lightgrey] $baselist{$i} = 1; } } + my @basearray = keys(%baselist); if ($::FORM{'doall'}) { SendSQL("select blocked, dependson from dependencies"); @@ -74,7 +75,7 @@ node [URL="${urlbase}show_bug.cgi?id=\\N", style=filled, color=lightgrey] AddLink($blocked, $dependson); } } else { - my @stack = keys(%baselist); + my @stack = @basearray; while (@stack) { my $id = shift @stack; SendSQL("select blocked, dependson from dependencies where blocked = $id or dependson = $id"); @@ -91,6 +92,9 @@ node [URL="${urlbase}show_bug.cgi?id=\\N", style=filled, color=lightgrey] } } + foreach my $k (@basearray) { + $seen{$k} = 1; + } foreach my $k (keys(%seen)) { my $summary = ""; my $stat; |