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

Issue 3989064: code review 3989064: path: work for windows. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 5 months ago by mattn
Modified:
14 years, 4 months ago
Reviewers:
rsc, r, brainman, r2, bsiegert, golang-dev
CC:
golang-dev
Visibility:
Public.

Description

path: work for windows. added IsDirSep, IsVolumeSep, IsSame. Fixes issue 1483. Fixes issue 1107. Fixes issue 1423.

Patch Set 1 #

Patch Set 2 : diff -r f9b54e1e9841 http://go.googlecode.com/hg/ #

Patch Set 3 : diff -r f9b54e1e9841 http://go.googlecode.com/hg/ #

Patch Set 4 : diff -r f9b54e1e9841 http://go.googlecode.com/hg/ #

Total comments: 15

Patch Set 5 : diff -r f9b54e1e9841 http://go.googlecode.com/hg/ #

Patch Set 6 : diff -r f9b54e1e9841 http://go.googlecode.com/hg/ #

Patch Set 7 : diff -r f9b54e1e9841 http://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 8 : diff -r fd41b76c8e51 http://go.googlecode.com/hg/ #

Patch Set 9 : diff -r fd41b76c8e51 http://go.googlecode.com/hg/ #

Patch Set 10 : diff -r fd41b76c8e51 http://go.googlecode.com/hg/ #

Patch Set 11 : diff -r fd41b76c8e51 http://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 12 : diff -r 1d32c7df56c8 http://go.googlecode.com/hg/ #

Patch Set 13 : diff -r 1d32c7df56c8 http://go.googlecode.com/hg/ #

Patch Set 14 : diff -r 1d32c7df56c8 http://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -33 lines) Patch
M src/pkg/path/match.go View 1 4 chunks +6 lines, -6 lines 0 comments Download
M src/pkg/path/match_test.go View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/path/path.go View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +26 lines, -19 lines 0 comments Download
M src/pkg/path/path_test.go View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +30 lines, -7 lines 0 comments Download
M src/pkg/path/path_unix.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +18 lines, -0 lines 0 comments Download
M src/pkg/path/path_windows.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 38
mattn
Hello golang-dev@googlegroups.com, I'd like you to review this change to http://go.googlecode.com/hg/
14 years, 5 months ago (2011-02-04 06:30:52 UTC) #1
mattn
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2011-02-04 06:31:48 UTC) #2
bsiegert
http://codereview.appspot.com/3989064/diff/6001/src/pkg/path/match.go File src/pkg/path/match.go (right): http://codereview.appspot.com/3989064/diff/6001/src/pkg/path/match.go#newcode23 src/pkg/path/match.go:23: // '\\' c matches character c I am concerned ...
14 years, 5 months ago (2011-02-04 09:38:47 UTC) #3
mattn
http://codereview.appspot.com/3989064/diff/6001/src/pkg/path/path.go File src/pkg/path/path.go (right): http://codereview.appspot.com/3989064/diff/6001/src/pkg/path/path.go#newcode85 src/pkg/path/path.go:85: buf[w] = DirSeps[0] This become normalizer replacing slash to ...
14 years, 5 months ago (2011-02-04 09:54:43 UTC) #4
mattn
Hello golang-dev@googlegroups.com, bsiegert, r, rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2011-02-04 09:54:54 UTC) #5
mattn
I'll add the comment about slash/backslash. Thanks for your review. On 2011/02/04 09:38:47, bsiegert wrote: ...
14 years, 5 months ago (2011-02-04 09:55:53 UTC) #6
mattn
Ah sorry. I didn't fix all. X-( On 2011/02/04 09:38:47, bsiegert wrote: > http://codereview.appspot.com/3989064/diff/6001/src/pkg/path/match.go > ...
14 years, 5 months ago (2011-02-04 09:56:45 UTC) #7
bsiegert
On Fri, Feb 4, 2011 at 10:54, <mattn.jp@gmail.com> wrote: > http://codereview.appspot.com/3989064/diff/6001/src/pkg/path/path.go#newcode85 > src/pkg/path/path.go:85: buf[w] = ...
14 years, 5 months ago (2011-02-04 10:02:55 UTC) #8
mattn
Hello golang-dev@googlegroups.com, bsiegert, r, rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2011-02-04 10:10:49 UTC) #9
mattn
http://codereview.appspot.com/3989064/diff/6001/src/pkg/path/match.go File src/pkg/path/match.go (right): http://codereview.appspot.com/3989064/diff/6001/src/pkg/path/match.go#newcode23 src/pkg/path/match.go:23: // '\\' c matches character c This is pattern, ...
14 years, 5 months ago (2011-02-04 10:11:19 UTC) #10
mattn
> Not sure if this is a good idea. Does c:\go\src\package\runtime still > match "c:/go/src/package/*"? ...
14 years, 5 months ago (2011-02-04 10:12:38 UTC) #11
mattn
Or you we should use slash for path separator as default value on windows, I'll ...
14 years, 5 months ago (2011-02-04 10:13:45 UTC) #12
bsiegert
On Fri, Feb 4, 2011 at 11:12, <mattn.jp@gmail.com> wrote: >> Not sure if this is ...
14 years, 5 months ago (2011-02-04 10:21:27 UTC) #13
mattn
Yes, I guess that we should escape user's input. For example of perl, to search ...
14 years, 5 months ago (2011-02-04 10:29:02 UTC) #14
mattn
Hello golang-dev@googlegroups.com, bsiegert, r, rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2011-02-04 11:27:27 UTC) #15
mattn
http://codereview.appspot.com/3989064/diff/16001/src/pkg/path/path_test.go File src/pkg/path/path_test.go (right): http://codereview.appspot.com/3989064/diff/16001/src/pkg/path/path_test.go#newcode267 src/pkg/path/path_test.go:267: if os.Getuid() > 0 { win32 return -1 always.
14 years, 5 months ago (2011-02-04 11:29:02 UTC) #16
mattn
http://codereview.appspot.com/3989064/diff/16001/src/pkg/path/path_test.go File src/pkg/path/path_test.go (right): http://codereview.appspot.com/3989064/diff/16001/src/pkg/path/path_test.go#newcode267 src/pkg/path/path_test.go:267: if os.Getuid() > 0 { On 2011/02/04 11:29:02, mattn ...
14 years, 5 months ago (2011-02-04 11:29:47 UTC) #17
rsc
I appreciate all the effort here but until the design question in issue 1423 gets ...
14 years, 5 months ago (2011-02-04 14:39:01 UTC) #18
bsiegert
On Mon, Feb 7, 2011 at 01:16, mattn <mattn.jp@gmail.com> wrote: > Is this issue a ...
14 years, 5 months ago (2011-02-07 14:26:14 UTC) #19
brainman
On 2011/02/04 06:30:52, mattn wrote: > Hello mailto:golang-dev@googlegroups.com, > > I'd like you to review ...
14 years, 5 months ago (2011-02-07 23:36:29 UTC) #20
r2
On Feb 7, 2011, at 3:57 PM, mattn wrote: > ok, I added "fix issue ...
14 years, 5 months ago (2011-02-08 00:03:05 UTC) #21
rsc
I am a bit unhappy about all this path hacking going on without a clear ...
14 years, 5 months ago (2011-02-09 04:57:36 UTC) #22
rsc
I am okay with making package path use \ on Windows. But I want to ...
14 years, 5 months ago (2011-02-09 06:15:52 UTC) #23
bsiegert
On Wed, Feb 9, 2011 at 07:15, Russ Cox <rsc@golang.org> wrote: > I am okay ...
14 years, 5 months ago (2011-02-09 07:07:46 UTC) #24
mattn
Hello golang-dev@googlegroups.com, bsiegert, r, rsc, brainman, r2 (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2011-02-10 00:42:46 UTC) #25
mattn
I fixed a problem of Clean() on windows. Clean("C:/") returned "C:" On 2011/02/10 00:42:46, mattn ...
14 years, 5 months ago (2011-02-10 00:43:36 UTC) #26
mattn
Ah, sorry. I found problem. Please wait. On 2011/02/10 00:43:36, mattn wrote: > I fixed ...
14 years, 5 months ago (2011-02-10 00:52:18 UTC) #27
mattn
Hello golang-dev@googlegroups.com, bsiegert, r, rsc, brainman, r2 (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2011-02-10 01:02:06 UTC) #28
mattn
I changed: * renamed IsSame to isSame This is not needed for go user. * ...
14 years, 5 months ago (2011-02-10 01:04:17 UTC) #29
mattn
Hello golang-dev@googlegroups.com, bsiegert, r, rsc, brainman, r2 (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 5 months ago (2011-02-10 01:24:51 UTC) #30
brainman
On 2011/02/10 01:24:51, mattn wrote: > Hello mailto:golang-dev@googlegroups.com, bsiegert, r, rsc, brainman, r2 (cc: > ...
14 years, 5 months ago (2011-02-11 00:16:23 UTC) #31
mattn
Rally? I get following. directory\file true On 2011/02/11 00:16:23, brainman wrote: > On 2011/02/10 01:24:51, ...
14 years, 4 months ago (2011-02-15 01:53:27 UTC) #32
brainman
On 2011/02/15 01:53:27, mattn wrote: > Rally? I get following. > > directory\file > true ...
14 years, 4 months ago (2011-02-16 05:02:31 UTC) #33
mattn
Hello golang-dev@googlegroups.com, bsiegert, r, rsc, brainman, r2 (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 4 months ago (2011-02-16 08:06:43 UTC) #34
mattn
http://codereview.appspot.com/3989064/diff/38001/src/pkg/path/path_test.go File src/pkg/path/path_test.go (right): http://codereview.appspot.com/3989064/diff/38001/src/pkg/path/path_test.go#newcode332 src/pkg/path/path_test.go:332: On 2011/02/16 05:02:31, brainman wrote: > Please, add test ...
14 years, 4 months ago (2011-02-16 08:06:55 UTC) #35
rsc
Work on this CL is not a productive use of time. I want time to ...
14 years, 4 months ago (2011-02-16 16:25:48 UTC) #36
mattn
I created new CL, then i'll close this issue. http://codereview.appspot.com/4249064/ On 2011/02/16 16:25:48, rsc wrote: ...
14 years, 4 months ago (2011-03-09 05:56:54 UTC) #37
mattn
14 years, 4 months ago (2011-03-09 06:03:14 UTC) #38
*** Abandoned ***
Sign in to reply to this message.

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