https://codereview.appspot.com/8540050/diff/1/cmd/juju/upgradecharm.go#newcode38
cmd/juju/upgradecharm.go:38: Note that the given charm must be
compatible with the current one.
Perhaps say what "compatible" means in this context in a concise and
easy to understand way (no need to go into all the details, but an
overview would be good so the user knows what they're up against)
good direction, but does not LGTM quite yet - some logic i don't think
is quite right, as outlined below.
https:/ /codereview. appspot. com/8540050/ diff/1/ cmd/juju/ upgradecharm. go upgradecharm. go (right):
File cmd/juju/
https:/ /codereview. appspot. com/8540050/ diff/1/ cmd/juju/ upgradecharm. go#newcode38 upgradecharm. go:38: Note that the given charm must be
cmd/juju/
compatible with the current one.
Perhaps say what "compatible" means in this context in a concise and
easy to understand way (no need to go into all the details, but an
overview would be good so the user knows what they're up against)
https:/ /codereview. appspot. com/8540050/ diff/1/ cmd/juju/ upgradecharm. go#newcode106 upgradecharm. go:106: rev, err := repo.Latest(curl)
cmd/juju/
i think this is wrong in the context of SwitchURL.
i think the Latest and bump-revision logic should only be triggered when
the charm url does not have a revision number specified.
https:/ /codereview. appspot. com/8540050/ diff/1/ cmd/juju/ upgradecharm_ test.go upgradecharm_ test.go (right):
File cmd/juju/
https:/ /codereview. appspot. com/8540050/ diff/1/ cmd/juju/ upgradecharm_ test.go# newcode179 upgradecharm_ test.go: 179: s.assertLocalRe vision( c, 7,
cmd/juju/
myriakPath)
also test switching from one cs: charm to another?
and with a revision number explicitly specified.
https:/ /codereview. appspot. com/8540050/ diff/1/ testing/ charm.go
File testing/charm.go (right):
https:/ /codereview. appspot. com/8540050/ diff/1/ testing/ charm.go# newcode62 charm.go: 62: check(exec. Command( "mv", newDst, renamedDst).Run())
testing/
os.Rename(newDst, renamedDst) ?
https:/ /codereview. appspot. com/8540050/