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

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

Issue 365993007: Support "pub downgrade". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 5 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/command/upgrade.dart
diff --git a/sdk/lib/_internal/pub/lib/src/command/upgrade.dart b/sdk/lib/_internal/pub/lib/src/command/upgrade.dart
index e8b6ad0bbba9a579a8a4544ed25cd73e6bc11468..c42c33b385b4df610dad2dd9fd01999158681274 100644
--- a/sdk/lib/_internal/pub/lib/src/command/upgrade.dart
+++ b/sdk/lib/_internal/pub/lib/src/command/upgrade.dart
@@ -8,6 +8,7 @@ import 'dart:async';
import '../command.dart';
import '../log.dart' as log;
+import '../solver/version_solver.dart';
/// Handles the `upgrade` pub command.
class UpgradeCommand extends PubCommand {
@@ -30,8 +31,8 @@ class UpgradeCommand extends PubCommand {
Future onRun() {
var dryRun = commandOptions['dry-run'];
- return entrypoint.acquireDependencies(useLatest: commandOptions.rest,
- isUpgrade: true, dryRun: dryRun).then((_) {
+ return entrypoint.acquireDependencies(SolveType.UPGRADE,
+ useLatest: commandOptions.rest, dryRun: dryRun).then((_) {
if (isOffline) {
log.warning("Warning: Upgrading when offline may not update you to the "
"latest versions of your dependencies.");
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/command/global_deactivate.dart ('k') | sdk/lib/_internal/pub/lib/src/entrypoint.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698