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

Issue 8701043: Use the new set.Strings

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years ago by thumper
Modified:
11 years ago
Reviewers:
mp+158531, dfc, fwereade
Visibility:
Public.

Description

Use the new set.Strings Update some other call-sites that were using map[string]bool when they really wanted sets of strings. https://code.launchpad.net/~thumper/juju-core/use-string-set/+merge/158531 Requires: https://code.launchpad.net/~thumper/juju-core/string-set/+merge/158530 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Use the new set.StringSet #

Total comments: 12

Patch Set 3 : Use the new set.StringSet #

Patch Set 4 : Use the new set.Strings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -62 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/deploy_test.go View 1 2 3 chunks +9 lines, -11 lines 0 comments Download
M environs/tools/list.go View 1 2 2 chunks +5 lines, -10 lines 0 comments Download
M state/watcher.go View 1 2 10 chunks +12 lines, -13 lines 0 comments Download
M utils/set/strings.go View 1 2 5 chunks +10 lines, -5 lines 0 comments Download
M utils/set/strings_test.go View 1 2 2 chunks +14 lines, -0 lines 0 comments Download
M worker/deployer/deployer.go View 1 8 chunks +13 lines, -13 lines 0 comments Download
M worker/uniter/jujuc/ports_test.go View 1 2 chunks +7 lines, -6 lines 0 comments Download
M worker/uniter/jujuc/util_test.go View 1 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 7
thumper
Please take a look.
11 years ago (2013-04-12 05:24:41 UTC) #1
fwereade
LGTM, but you might also want to cast an eye over the code for `map[string]struct{}`s ...
11 years ago (2013-04-12 15:13:52 UTC) #2
thumper
Please take a look.
11 years ago (2013-04-15 00:05:56 UTC) #3
dfc
Very close, some minor comments, including ones that I should have picked up in your ...
11 years ago (2013-04-15 00:22:24 UTC) #4
thumper
Please take a look. https://codereview.appspot.com/8701043/diff/4001/cmd/jujud/deploy_test.go File cmd/jujud/deploy_test.go (right): https://codereview.appspot.com/8701043/diff/4001/cmd/jujud/deploy_test.go#newcode44 cmd/jujud/deploy_test.go:44: if ctx.deployed.Size() == 0 { ...
11 years ago (2013-04-15 01:05:50 UTC) #5
dfc
LGTM. Thank you. On 15/04/2013, at 11:05, tim.penhey@canonical.com wrote: > Please take a look. > ...
11 years ago (2013-04-15 01:28:14 UTC) #6
thumper
11 years ago (2013-04-15 01:35:40 UTC) #7
*** Submitted:

Use the new set.Strings

Update some other call-sites that were using map[string]bool when they really
wanted sets of strings.

R=fwereade, dfc
CC=
https://codereview.appspot.com/8701043
Sign in to reply to this message.

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