Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2978)

Unified Diff: lib/src/command/deps.dart

Issue 1274763010: Improve the output of "pub deps". (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/deps_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/command/deps.dart
diff --git a/lib/src/command/deps.dart b/lib/src/command/deps.dart
index 7b1bafc8a591ac080a11fd70144b8e6be77dafbd..88d570493f197f0a5653afaefcc4839d3bc3f551 100644
--- a/lib/src/command/deps.dart
+++ b/lib/src/command/deps.dart
@@ -141,7 +141,7 @@ class DepsCommand extends PubCommand {
// being added to the tree, and the parent map that will receive that
// package.
var toWalk = new Queue<Pair<Package, Map>>();
- var visited = new Set<String>();
+ var visited = new Set<String>.from([entrypoint.root.name]);
// Start with the root dependencies.
var packageTree = {};
« no previous file with comments | « no previous file | test/deps_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698