Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(16943)

Issue 6245075: Add local charm Repository type

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by fwereade
Modified:
11 years, 10 months ago
Reviewers:
mp+108123
Visibility:
Public.

Description

Add local charm Repository type https://code.launchpad.net/~fwereade/juju/go-local-repo/+merge/108123 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 11

Patch Set 2 : Add local charm Repository type #

Total comments: 6

Patch Set 3 : Add local charm Repository type #

Unified diffs Side-by-side diffs Delta from patch set Stats (+289 lines, -29 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M charm/charm.go View 2 chunks +15 lines, -0 lines 0 comments Download
M charm/charm_test.go View 1 chunk +17 lines, -7 lines 0 comments Download
M charm/config_test.go View 4 chunks +9 lines, -5 lines 0 comments Download
M charm/dir_test.go View 6 chunks +11 lines, -7 lines 0 comments Download
M charm/meta_test.go View 5 chunks +10 lines, -6 lines 0 comments Download
M charm/repo.go View 1 2 1 chunk +81 lines, -0 lines 0 comments Download
M charm/repo_test.go View 1 1 chunk +136 lines, -0 lines 0 comments Download
M charm/url_test.go View 4 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 5
fwereade
Please take a look.
11 years, 10 months ago (2012-05-31 08:44:27 UTC) #1
niemeyer
Very nice. https://codereview.appspot.com/6245075/diff/1/charm/charm.go File charm/charm.go (right): https://codereview.appspot.com/6245075/diff/1/charm/charm.go#newcode13 charm/charm.go:13: // Read reads a Charm from path, ...
11 years, 10 months ago (2012-05-31 10:19:24 UTC) #2
fwereade
Please take a look. https://codereview.appspot.com/6245075/diff/1/charm/repo.go File charm/repo.go (right): https://codereview.appspot.com/6245075/diff/1/charm/repo.go#newcode148 charm/repo.go:148: // by series. On 2012/05/31 ...
11 years, 10 months ago (2012-05-31 11:39:18 UTC) #3
niemeyer
LGTM https://codereview.appspot.com/6245075/diff/5001/charm/repo.go File charm/repo.go (right): https://codereview.appspot.com/6245075/diff/5001/charm/repo.go#newcode149 charm/repo.go:149: // that series. // // For example: // ...
11 years, 10 months ago (2012-05-31 17:15:33 UTC) #4
fwereade
11 years, 10 months ago (2012-06-01 07:43:50 UTC) #5
*** Submitted:

Add local charm Repository type

R=niemeyer
CC=
https://codereview.appspot.com/6245075

https://codereview.appspot.com/6245075/diff/5001/charm/repo.go
File charm/repo.go (right):

https://codereview.appspot.com/6245075/diff/5001/charm/repo.go#newcode149
charm/repo.go:149: // that series.
On 2012/05/31 17:15:33, niemeyer wrote:
> //
> // For example:
> //
> //     /path/to/repository/oneiric/mongodb/
> //     /path/to/repository/precise/mongodb.charm
> //     /path/to/repository/precise/wordpress/
> //

Done.

https://codereview.appspot.com/6245075/diff/5001/charm/repo.go#newcode184
charm/repo.go:184: return nil, fmt.Errorf("charm: local repository got URL with
non-local schema: %q", curl)
On 2012/05/31 17:15:33, niemeyer wrote:
> Would you mind to drop the "charm:" prefix here? I know it was my suggestion,
> but this is inconsistent with the other error messages above. We need some
more
> clear definition of how to do that kind of prefixing. We're all over the place
> right now.
> 
> We just had a good brainstorm here, and we'll probably remove all those blind
> package prefixes by default. We may still keep some, but it's a mess right now
> and we should start cleaning it up towards something more sensible.

Done.

https://codereview.appspot.com/6245075/diff/5001/charm/repo_test.go
File charm/repo_test.go (right):

https://codereview.appspot.com/6245075/diff/5001/charm/repo_test.go#newcode325
charm/repo_test.go:325: func (s *LocalRepoSuite) TestIgnoresUnpromisingNames(c
*C) {
On 2012/05/31 17:15:33, niemeyer wrote:
> Awesome name. :-)

Cheers :)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b