From 9aae1c09dfffca3a5cdf875337d1987abb53bf3f Mon Sep 17 00:00:00 2001 From: "kustermann@google.com" Date: Thu, 25 Apr 2013 07:52:22 +0000 Subject: [PATCH] Fixed version.dart to use Future.immediate We use a checked-in binary of dart that doesn't have Future.value(). BUG=http://dartbug.com/10193 Review URL: https://codereview.chromium.org//14146019 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22010 260f80e4-7a28-3924-810f-c04153c831b5 --- tools/release/version.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/release/version.dart b/tools/release/version.dart index 99b44bd8752..74e1e66363d 100644 --- a/tools/release/version.dart +++ b/tools/release/version.dart @@ -149,7 +149,7 @@ class Version { Future getRevision() { if (repositoryType == RepositoryType.UNKNOWN) { - return new Future.value(0); + return new Future.immediate(0); } var isSvn = repositoryType == RepositoryType.SVN; var command = isSvn ? "svn" : "git";