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

Issue 6082044: version: add new package.

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 6 months ago by rog
Modified:
12 years, 6 months ago
Reviewers:
mp+102905
Visibility:
Public.

Description

version: add new package. https://code.launchpad.net/~rogpeppe/juju/go-add-versions-package/+merge/102905 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : version: add new package. #

Total comments: 5

Patch Set 3 : version: add new package. #

Total comments: 8

Patch Set 4 : version: add new package. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -0 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A version/version.go View 1 2 3 1 chunk +89 lines, -0 lines 0 comments Download
A version/version_test.go View 1 2 1 chunk +103 lines, -0 lines 0 comments Download

Messages

Total messages: 8
rog
Please take a look.
12 years, 6 months ago (2012-04-20 17:13:18 UTC) #1
TheMue
On 2012/04/20 17:13:18, rog wrote: > Please take a look. LGTM, only usage of go ...
12 years, 6 months ago (2012-04-20 17:19:47 UTC) #2
fwereade
LGTM apart from uncertainty about minor version compatibility, I'd appreciate a more detailed explanation. https://codereview.appspot.com/6082044/diff/2001/environs/version/version.go ...
12 years, 6 months ago (2012-04-20 17:24:43 UTC) #3
niemeyer
https://codereview.appspot.com/6082044/diff/2001/environs/version/version.go File environs/version/version.go (right): https://codereview.appspot.com/6082044/diff/2001/environs/version/version.go#newcode19 environs/version/version.go:19: Build []string // The build version (dot-separated elements) These ...
12 years, 6 months ago (2012-04-23 13:14:32 UTC) #4
niemeyer
This should be adapted to the conclusion of the thread in the ML.
12 years, 6 months ago (2012-04-24 00:15:47 UTC) #5
rog
Please take a look.
12 years, 6 months ago (2012-04-25 15:55:48 UTC) #6
niemeyer
Good stuff. LGTM, with some straightforward suggestions. https://codereview.appspot.com/6082044/diff/8001/version/version.go File version/version.go (right): https://codereview.appspot.com/6082044/diff/8001/version/version.go#newcode13 version/version.go:13: // Version ...
12 years, 6 months ago (2012-04-25 16:13:58 UTC) #7
rog
12 years, 6 months ago (2012-04-25 16:23:00 UTC) #8
*** Submitted:

version: add new package.

R=
CC=
https://codereview.appspot.com/6082044

https://codereview.appspot.com/6082044/diff/8001/version/version.go
File version/version.go (right):

https://codereview.appspot.com/6082044/diff/8001/version/version.go#newcode13
version/version.go:13: // Version represents a parsed version.
On 2012/04/25 16:13:59, niemeyer wrote:
> // Version represents a juju version.
> // As a convention, when bugs are fixed the patch number
> // is incremented, when new features are added the minor
> // number is incremented and patch is reset, and when
> // compatibility is broken the major version is incremented
> // and minor and patch are reset.
> // If any of the numbers is odd, though, it indicates
> // that the release is still in development.

Done with minor edits.

https://codereview.appspot.com/6082044/diff/8001/version/version.go#newcode17
version/version.go:17: Patch int // The patch version number.
On 2012/04/25 16:13:59, niemeyer wrote:
> The inline comments are obvious given context.

Done.

https://codereview.appspot.com/6082044/diff/8001/version/version.go#newcode57
version/version.go:57: func (v *Version) String() string {
On 2012/04/25 16:13:59, niemeyer wrote:
> s/*//?

Done.

https://codereview.appspot.com/6082044/diff/8001/version/version.go#newcode83
version/version.go:83: return isOdd(v.Major) ||
On 2012/04/25 16:13:59, niemeyer wrote:
> That will probably look nicer as a one-liner:
> 
> return isOdd(v.Major) || isOdd(v.Minor) || isOdd(v.Patch)

Done.
Sign in to reply to this message.

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