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

Unified Diff: utils/pub/lock_file.dart

Issue 12133002: add a comment to the generated lock file (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/lock_file.dart
===================================================================
--- utils/pub/lock_file.dart (revision 17925)
+++ utils/pub/lock_file.dart (working copy)
@@ -26,7 +26,6 @@
var packages = <String, PackageId>{};
if (contents.trim() == '') return new LockFile.empty();
-
var parsed = loadYaml(contents);
if (parsed.containsKey('packages')) {
@@ -85,6 +84,9 @@
// TODO(nweiz): Serialize using the YAML library once it supports
// serialization. For now, we use JSON, since it's a subset of YAML anyway.
- return json.stringify({'packages': packagesObj});
+ return '''
+ # Generated by pub. See: http://pub.dartlang.org/doc/glossary.html#lockfile
+ ${json.stringify({'packages': packagesObj})}
+ ''';
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698