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

Unified Diff: utils/pub/pub.dart

Issue 13095015: Use backtracking when solving dependency constraints. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise, update to latest corelib, and make backtracker default. Created 7 years, 8 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: utils/pub/pub.dart
diff --git a/utils/pub/pub.dart b/utils/pub/pub.dart
index 9af9c27c921e5e1006d80f640990f78bd4ad5425..02269bbaeec1b1bccaf418d7187e203b83913019 100644
--- a/utils/pub/pub.dart
+++ b/utils/pub/pub.dart
@@ -64,11 +64,12 @@ ArgParser get pubArgParser {
help: 'Print debugging information when an error occurs.');
parser.addOption('verbosity',
help: 'Control output verbosity.',
- allowed: ['normal', 'io', 'all'],
+ allowed: ['normal', 'io', 'solver', 'all'],
allowedHelp: {
- 'normal': 'Errors, warnings, and user messages are shown.',
- 'io': 'IO operations are also shown.',
- 'all': 'All output including internal tracing messages are shown.'
+ 'normal': 'Show errors, warnings, and user messages.',
+ 'io': 'Also show IO operations.',
+ 'solver': 'Show steps during version resolution.',
+ 'all': 'Show all output including internal tracing messages.'
});
parser.addFlag('verbose', abbr: 'v', negatable: false,
help: 'Shortcut for "--verbosity=all"');
@@ -102,6 +103,7 @@ main() {
switch (globalOptions['verbosity']) {
case 'normal': log.showNormal(); break;
case 'io': log.showIO(); break;
+ case 'solver': log.showSolver(); break;
case 'all': log.showAll(); break;
default:
// No specific verbosity given, so check for the shortcut.

Powered by Google App Engine
This is Rietveld 408576698