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

Issue 15777002: Use indentation for maps in lockfile. (Closed)

Created:
7 years, 7 months ago by Bob Nystrom
Modified:
7 years, 7 months ago
Reviewers:
nweiz
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Use indentation for maps in lockfile. BUG=https://code.google.com/p/dart/issues/detail?id=5104 R=nweiz@google.com Committed: https://code.google.com/p/dart/source/detail?r=23114

Patch Set 1 #

Total comments: 6

Patch Set 2 : Revise. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -39 lines) Patch
M sdk/lib/_internal/pub/lib/src/lock_file.dart View 1 2 chunks +10 lines, -15 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/solver/version_solver.dart View 1 chunk +3 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/utils.dart View 1 2 chunks +63 lines, -0 lines 6 comments Download
M sdk/lib/_internal/pub/test/lock_file_test.dart View 1 1 chunk +0 lines, -23 lines 0 comments Download
A sdk/lib/_internal/pub/test/utils_test.dart View 1 1 chunk +84 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Bob Nystrom
With this, lockfiles look like: # Generated by pub # See http://pub.dartlang.org/doc/glossary.html#lockfile analyzer_experimental: description: "analyzer_experimental" ...
7 years, 7 months ago (2013-05-22 21:04:02 UTC) #1
nweiz
https://codereview.chromium.org/15777002/diff/1/sdk/lib/_internal/pub/lib/src/lock_file.dart File sdk/lib/_internal/pub/lib/src/lock_file.dart (right): https://codereview.chromium.org/15777002/diff/1/sdk/lib/_internal/pub/lib/src/lock_file.dart#newcode115 sdk/lib/_internal/pub/lib/src/lock_file.dart:115: _stringify(bool isMapValue, StringBuffer buffer, String indent, data) { Move ...
7 years, 7 months ago (2013-05-23 18:44:57 UTC) #2
Bob Nystrom
Thanks! https://codereview.chromium.org/15777002/diff/1/sdk/lib/_internal/pub/lib/src/lock_file.dart File sdk/lib/_internal/pub/lib/src/lock_file.dart (right): https://codereview.chromium.org/15777002/diff/1/sdk/lib/_internal/pub/lib/src/lock_file.dart#newcode115 sdk/lib/_internal/pub/lib/src/lock_file.dart:115: _stringify(bool isMapValue, StringBuffer buffer, String indent, data) { ...
7 years, 7 months ago (2013-05-23 23:05:55 UTC) #3
nweiz
A couple typos, but otherwise LGTM. Excited to have nice-looking lockfiles. https://codereview.chromium.org/15777002/diff/5001/sdk/lib/_internal/pub/lib/src/utils.dart File sdk/lib/_internal/pub/lib/src/utils.dart (right): ...
7 years, 7 months ago (2013-05-23 23:26:00 UTC) #4
Bob Nystrom
Committed patchset #2 manually as r23114 (presubmit successful).
7 years, 7 months ago (2013-05-23 23:47:14 UTC) #5
Bob Nystrom
7 years, 7 months ago (2013-05-23 23:47:52 UTC) #6
Message was sent while issue was closed.
I'm happy to get this in too.

https://codereview.chromium.org/15777002/diff/5001/sdk/lib/_internal/pub/lib/...
File sdk/lib/_internal/pub/lib/src/utils.dart (right):

https://codereview.chromium.org/15777002/diff/5001/sdk/lib/_internal/pub/lib/...
sdk/lib/_internal/pub/lib/src/utils.dart:463: /// strings may be unnecessarily
quoted, but it much simpler.
On 2013/05/23 23:26:00, nweiz wrote:
> "it" -> "it's"

Done.

https://codereview.chromium.org/15777002/diff/5001/sdk/lib/_internal/pub/lib/...
sdk/lib/_internal/pub/lib/src/utils.dart:464: final _unquotableYamlString = new
RegExp(r"^[a-zA-Z_\-][a-zA-Z_0-9\-]*$");
On 2013/05/23 23:26:00, nweiz wrote:
> I don't think you need to escape trailing hyphens in regexps, although it
> doesn't hurt either.

Done.

https://codereview.chromium.org/15777002/diff/5001/sdk/lib/_internal/pub/lib/...
sdk/lib/_internal/pub/lib/src/utils.dart:466: /// Converts [data], which is a
parsed YAML object to a pretty-printed string,
On 2013/05/23 23:26:00, nweiz wrote:
> "object" -> "object,"

Done.

Powered by Google App Engine
This is Rietveld 408576698