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

Issue 10386021: Add a Pub source that checks packages out from Git. (Closed)

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

Description

Add a Pub source that checks packages out from Git. Committed: https://code.google.com/p/dart/source/detail?r=7623

Patch Set 1 #

Total comments: 12

Patch Set 2 : Code review changes #

Patch Set 3 : Add tests #

Total comments: 4

Patch Set 4 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+315 lines, -49 lines) Patch
A utils/pub/git_source.dart View 1 1 chunk +33 lines, -0 lines 0 comments Download
M utils/pub/io.dart View 1 2 3 chunks +23 lines, -9 lines 0 comments Download
M utils/pub/package.dart View 3 chunks +58 lines, -7 lines 0 comments Download
M utils/pub/packages_dir.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/pub.dart View 1 2 3 chunks +6 lines, -4 lines 0 comments Download
M utils/pub/source.dart View 1 chunk +0 lines, -16 lines 0 comments Download
A utils/pub/source_registry.dart View 1 1 chunk +61 lines, -0 lines 0 comments Download
M utils/pub/system_cache.dart View 3 chunks +9 lines, -3 lines 0 comments Download
M utils/pub/utils.dart View 1 chunk +11 lines, -0 lines 0 comments Download
M utils/tests/pub/pub_test.dart View 1 2 3 4 chunks +63 lines, -3 lines 0 comments Download
M utils/tests/pub/test_pub.dart View 1 2 5 chunks +50 lines, -6 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
nweiz
8 years, 7 months ago (2012-05-08 01:26:20 UTC) #1
Bob Nystrom
A couple of minor nits but the code is fine. I really want to see ...
8 years, 7 months ago (2012-05-08 17:01:49 UTC) #2
nweiz
https://chromiumcodereview.appspot.com/10386021/diff/1/utils/pub/git_source.dart File utils/pub/git_source.dart (right): https://chromiumcodereview.appspot.com/10386021/diff/1/utils/pub/git_source.dart#newcode8 utils/pub/git_source.dart:8: class GitSource extends Source { On 2012/05/08 17:01:49, Bob ...
8 years, 7 months ago (2012-05-09 00:21:04 UTC) #3
Bob Nystrom
LGTM. https://chromiumcodereview.appspot.com/10386021/diff/1011/utils/tests/pub/pub_test.dart File utils/tests/pub/pub_test.dart (right): https://chromiumcodereview.appspot.com/10386021/diff/1011/utils/tests/pub/pub_test.dart#newcode142 utils/tests/pub/pub_test.dart:142: String _gitPubspec(String name) => ''' As much as ...
8 years, 7 months ago (2012-05-14 19:40:02 UTC) #4
nweiz
8 years, 7 months ago (2012-05-14 19:53:38 UTC) #5
https://chromiumcodereview.appspot.com/10386021/diff/1011/utils/tests/pub/pub...
File utils/tests/pub/pub_test.dart (right):

https://chromiumcodereview.appspot.com/10386021/diff/1011/utils/tests/pub/pub...
utils/tests/pub/pub_test.dart:142: String _gitPubspec(String name) => '''
On 2012/05/14 19:40:02, Bob Nystrom wrote:
> As much as I like DRY, I think the tests would be easier to read if they were
> just literal strings for the pubspecs.

Done.

https://chromiumcodereview.appspot.com/10386021/diff/1011/utils/tests/pub/pub...
utils/tests/pub/pub_test.dart:164: output: const RegExp("^Cloning
into[\\s\\S]*^Dependencies installed!\$",
On 2012/05/14 19:40:02, Bob Nystrom wrote:
> You can use a raw string instead of escaping \:
> 
> @"^Cloning into[\s\S]*..."
> 
> You may still have to escape the $, though. Not sure.

Done.

Powered by Google App Engine
This is Rietveld 408576698