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

Issue 5489087: charm: must handle new revision schema

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by niemeyer
Modified:
12 years, 4 months ago
Reviewers:
mp+78728
Visibility:
Public.

Description

Revision handling was moved out of the metadata.yaml file. The Go port most be updated to handle it. This branch implements the new schema for charm revision handling in an independent file, including backwards compatibility with the previous schema, and also SetVersion methods that enable bundling and expanding charms with custom revisions (necessary for store). https://code.launchpad.net/~niemeyer/juju/go-new-revisions/+merge/78728 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 10

Patch Set 2 : charm: must handle new revision schema #

Patch Set 3 : charm: must handle new revision schema #

Unified diffs Side-by-side diffs Delta from patch set Stats (+349 lines, -82 lines) Patch
M all.bash View 1 1 chunk +11 lines, -5 lines 0 comments Download
M charm/bundle.go View 1 6 chunks +71 lines, -16 lines 0 comments Download
M charm/bundle_test.go View 1 4 chunks +64 lines, -6 lines 0 comments Download
M charm/charm.go View 1 1 chunk +1 line, -9 lines 0 comments Download
M charm/charm_test.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M charm/config.go View 1 3 chunks +5 lines, -4 lines 0 comments Download
M charm/config_test.go View 1 1 chunk +1 line, -1 line 0 comments Download
M charm/dir.go View 1 7 chunks +72 lines, -18 lines 0 comments Download
M charm/dir_test.go View 1 5 chunks +100 lines, -4 lines 0 comments Download
M charm/meta.go View 1 3 chunks +7 lines, -4 lines 0 comments Download
M charm/meta_test.go View 1 2 chunks +2 lines, -2 lines 0 comments Download
M charm/testrepo/series/dummy/metadata.yaml View 1 1 chunk +0 lines, -1 line 0 comments Download
A charm/testrepo/series/dummy/revision View 1 1 chunk +1 line, -0 lines 0 comments Download
M charm/testrepo/series/mysql-alternative/metadata.yaml View 1 1 chunk +1 line, -2 lines 0 comments Download
A charm/testrepo/series/mysql-alternative/revision View 1 1 chunk +1 line, -0 lines 0 comments Download
M charm/testrepo/series/mysql/metadata.yaml View 1 1 chunk +0 lines, -1 line 0 comments Download
A charm/testrepo/series/mysql/revision View 1 1 chunk +1 line, -0 lines 0 comments Download
M charm/testrepo/series/new/metadata.yaml View 1 1 chunk +0 lines, -1 line 0 comments Download
A charm/testrepo/series/new/revision View 1 1 chunk +1 line, -0 lines 0 comments Download
M charm/testrepo/series/old/metadata.yaml View 1 1 chunk +0 lines, -1 line 0 comments Download
A charm/testrepo/series/old/revision View 1 1 chunk +1 line, -0 lines 0 comments Download
M charm/testrepo/series/riak/metadata.yaml View 1 1 chunk +0 lines, -1 line 0 comments Download
A charm/testrepo/series/riak/revision View 1 1 chunk +1 line, -0 lines 0 comments Download
M charm/testrepo/series/varnish-alternative/metadata.yaml View 1 1 chunk +1 line, -2 lines 0 comments Download
A charm/testrepo/series/varnish-alternative/revision View 1 1 chunk +1 line, -0 lines 0 comments Download
M charm/testrepo/series/varnish/metadata.yaml View 1 1 chunk +0 lines, -1 line 0 comments Download
A charm/testrepo/series/varnish/revision View 1 1 chunk +1 line, -0 lines 0 comments Download
M charm/testrepo/series/wordpress/metadata.yaml View 1 1 chunk +0 lines, -1 line 0 comments Download
A charm/testrepo/series/wordpress/revision View 1 1 chunk +1 line, -0 lines 0 comments Download
M environs/ec2/juju_test.go View 1 2 chunks +2 lines, -1 line 0 comments Download
M environs/jujutest/Makefile View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6
niemeyer
Please take a look.
12 years, 4 months ago (2011-12-19 10:51:48 UTC) #1
rog
https://codereview.appspot.com/5489087/diff/1/all.bash File all.bash (right): https://codereview.appspot.com/5489087/diff/1/all.bash#newcode11 all.bash:11: dirs="schema environs environs/ec2 environs/jujutest charm" should these changes be ...
12 years, 4 months ago (2011-12-19 12:36:16 UTC) #2
niemeyer
https://codereview.appspot.com/5489087/diff/1/all.bash File all.bash (right): https://codereview.appspot.com/5489087/diff/1/all.bash#newcode11 all.bash:11: dirs="schema environs environs/ec2 environs/jujutest charm" > should these changes ...
12 years, 4 months ago (2011-12-19 12:52:43 UTC) #3
niemeyer
Please take a look.
12 years, 4 months ago (2011-12-19 12:55:55 UTC) #4
rog
LGTM On 19 December 2011 12:55, <n13m3y3r@gmail.com> wrote: > Please take a look. > > ...
12 years, 4 months ago (2011-12-19 13:09:56 UTC) #5
niemeyer
12 years, 4 months ago (2011-12-19 13:15:25 UTC) #6
*** Submitted:

charm: must handle new revision schema

Revision handling was moved out of the metadata.yaml file.
The Go port most be updated to handle it.

This branch implements the new schema for charm revision handling
in an independent file, including backwards compatibility with
the previous schema, and also SetVersion methods that enable
bundling and expanding charms with custom revisions
(necessary for store).

R=rog
CC=
https://codereview.appspot.com/5489087
Sign in to reply to this message.

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