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

Side by Side Diff: tools/release/version.dart

Issue 11028137: Move tools/testing/dart/version.dart into tools/release (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/testing/dart/version.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * This file contains functionality for getting dart version numbers using 6 * This file contains functionality for getting dart version numbers using
7 * our standard version construction method. Systems that does not include this 7 * our standard version construction method. Systems that does not include this
8 * file should emulate the structure for revision numbers that we have here. 8 * file should emulate the structure for revision numbers that we have here.
9 * 9 *
10 * The version number of a dart build is constructed as follows: 10 * The version number of a dart build is constructed as follows:
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 static RepositoryType guessType() { 170 static RepositoryType guessType() {
171 if (new Directory(".svn").existsSync()) return RepositoryType.SVN; 171 if (new Directory(".svn").existsSync()) return RepositoryType.SVN;
172 if (new Directory(".git").existsSync()) return RepositoryType.GIT; 172 if (new Directory(".git").existsSync()) return RepositoryType.GIT;
173 return RepositoryType.UNKNOWN; 173 return RepositoryType.UNKNOWN;
174 } 174 }
175 175
176 String toString() => name; 176 String toString() => name;
177 177
178 final String name; 178 final String name;
179 } 179 }
OLDNEW
« no previous file with comments | « no previous file | tools/testing/dart/version.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698