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

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

Issue 16854005: First pass at build dependency graph for barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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/sdk.dart
diff --git a/sdk/lib/_internal/pub/lib/src/sdk.dart b/sdk/lib/_internal/pub/lib/src/sdk.dart
index 0fbe5f966eeb3fb69f4c2272d999ce4868dcfd5b..2335e320ddc079f3266771c4bd1a4f2b49e3e346 100644
--- a/sdk/lib/_internal/pub/lib/src/sdk.dart
+++ b/sdk/lib/_internal/pub/lib/src/sdk.dart
@@ -44,6 +44,11 @@ bool get isBleedingEdge {
/// Determine the SDK's version number.
Version _getVersion() {
var revisionPath = path.join(rootDirectory, "version");
+
+ // If we can't find a version file, assume we're running from the repo and
+ // use a magic bleeding edge version.
+ if (!fileExists(revisionPath)) return new Version.parse("0.1.2+repo");
+
var version = readTextFile(revisionPath).trim();
// Given a version file like: 0.1.2.0_r17495

Powered by Google App Engine
This is Rietveld 408576698