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

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

Issue 26284002: Rename "install" -> "get" and "update" -> "upgrade". (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/source/git.dart
diff --git a/sdk/lib/_internal/pub/lib/src/source/git.dart b/sdk/lib/_internal/pub/lib/src/source/git.dart
index 40649553b23c535fee6419d350deb382770e4fc7..42e6856837da1d8ab5bb087fd339185a66a8363a 100644
--- a/sdk/lib/_internal/pub/lib/src/source/git.dart
+++ b/sdk/lib/_internal/pub/lib/src/source/git.dart
@@ -14,7 +14,7 @@ import '../package.dart';
import '../source.dart';
import '../utils.dart';
-/// A package source that installs packages from Git repos.
+/// A package source that gets packages from Git repos.
class GitSource extends Source {
final String name = "git";
@@ -34,13 +34,13 @@ class GitSource extends Source {
/// `<package name>-<url hash>`. These are used to check out the repository
/// itself; each of the commit-specific directories are clones of a directory
/// in `cache/`.
- Future<Package> installToSystemCache(PackageId id) {
+ Future<Package> downloadToSystemCache(PackageId id) {
var revisionCachePath;
return git.isInstalled.then((installed) {
if (!installed) {
throw new Exception(
- "Cannot install '${id.name}' from Git (${_getUrl(id)}).\n"
+ "Cannot get '${id.name}' from Git (${_getUrl(id)}).\n"
"Please ensure Git is correctly installed.");
}

Powered by Google App Engine
This is Rietveld 408576698