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

Unified Diff: sdk/lib/_internal/pub/lib/src/entrypoint.dart

Issue 42823002: Avoid watching files that aren't going to change for "pub serve". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
Index: sdk/lib/_internal/pub/lib/src/entrypoint.dart
diff --git a/sdk/lib/_internal/pub/lib/src/entrypoint.dart b/sdk/lib/_internal/pub/lib/src/entrypoint.dart
index 46367fa15710e4101e1c99ac06491d8023242998..c743b3a72c0718c478619e8e6d443cb48d12bb0f 100644
--- a/sdk/lib/_internal/pub/lib/src/entrypoint.dart
+++ b/sdk/lib/_internal/pub/lib/src/entrypoint.dart
@@ -215,7 +215,8 @@ class Entrypoint {
/// Loads the package graph for the application and all of its transitive
/// dependencies.
Future<PackageGraph> loadPackageGraph() {
- return Future.wait(loadLockFile().packages.values.map((id) {
+ var lockFile = loadLockFile();
+ return Future.wait(lockFile.packages.values.map((id) {
var source = cache.sources[id.source];
return source.getDirectory(id)
.then((dir) => new Package.load(id.name, dir, cache.sources));
@@ -225,7 +226,7 @@ class Entrypoint {
packageMap[package.name] = package;
}
packageMap[root.name] = root;
- return new PackageGraph(this, packageMap);
+ return new PackageGraph(this, lockFile, packageMap);
});
}
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/barback/watch_sources.dart ('k') | sdk/lib/_internal/pub/lib/src/package_graph.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698