| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |