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

Issue 92950045: Normalize FileVarPath

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 12 months ago by waigani
Modified:
9 years, 12 months ago
Reviewers:
gz, mp+217942, menn0, axw
Visibility:
Public.

Description

Normalize FileVarPath Fix bug 1271819 by normalizing cmd.FileVar on set. Add a new test to ensure deploy --config works with a config path starting with tilde. https://code.launchpad.net/~waigani/juju-core/config_rel_path_1271819/+merge/217942 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1

Patch Set 2 : Normalize FileVarPath #

Total comments: 1

Patch Set 3 : Normalize FileVarPath #

Patch Set 4 : Normalize FileVarPath #

Total comments: 3

Patch Set 5 : Normalize FileVarPath #

Patch Set 6 : Normalize FileVarPath #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -2 lines) Patch
A [revision details] View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/filevar.go View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
M cmd/filevar_test.go View 1 2 3 4 2 chunks +16 lines, -0 lines 0 comments Download
M cmd/juju/deploy_test.go View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M cmd/package_test.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10
waigani
Please take a look.
9 years, 12 months ago (2014-05-01 16:31:44 UTC) #1
menn0
Apart from possibly adding one more test, LGTM. It's probably best to wait for another ...
9 years, 12 months ago (2014-05-01 21:51:15 UTC) #2
axw
On 2014/05/01 21:51:15, menno.smits wrote: > https://codereview.appspot.com/92950045/diff/1/cmd/filevar.go#newcode21 > cmd/filevar.go:21: func (f *FileVar) Set(v string) (err ...
9 years, 12 months ago (2014-05-01 21:54:28 UTC) #3
waigani
Please take a look.
9 years, 12 months ago (2014-05-01 22:20:36 UTC) #4
axw
LGTM https://codereview.appspot.com/92950045/diff/20001/cmd/filevar_test.go File cmd/filevar_test.go (right): https://codereview.appspot.com/92950045/diff/20001/cmd/filevar_test.go#newcode42 cmd/filevar_test.go:42: c.Assert(config.String(), gc.Equals, osenv.Home()+"/config.yaml") filepath.Join(osenv.Home(), "config.yaml")
9 years, 12 months ago (2014-05-01 22:42:04 UTC) #5
waigani
Please take a look.
9 years, 12 months ago (2014-05-01 22:48:00 UTC) #6
waigani
Please take a look.
9 years, 12 months ago (2014-05-01 23:38:28 UTC) #7
gz
A couple of suggested changes. https://codereview.appspot.com/92950045/diff/60001/cmd/filevar.go File cmd/filevar.go (right): https://codereview.appspot.com/92950045/diff/60001/cmd/filevar.go#newcode22 cmd/filevar.go:22: f.Path, err = utils.NormalizePath(v) ...
9 years, 12 months ago (2014-05-02 01:10:27 UTC) #8
waigani
Please take a look.
9 years, 12 months ago (2014-05-02 01:41:50 UTC) #9
waigani
9 years, 12 months ago (2014-05-02 22:29:13 UTC) #10
Please take a look.
Sign in to reply to this message.

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