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

Issue 5796073: code review 5796073: archive/tar: add FileInfoHeader function (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by bradfitz
Modified:
12 years, 9 months ago
Reviewers:
CC:
adg, rsc, mike.rosset_gmail.com, golang-dev
Visibility:
Public.

Description

archive/tar: add FileInfoHeader function Fixes issue 3295

Patch Set 1 #

Patch Set 2 : diff -r 36be76617915 https://go.googlecode.com/hg #

Patch Set 3 : diff -r 36be76617915 https://go.googlecode.com/hg #

Patch Set 4 : diff -r 36be76617915 https://go.googlecode.com/hg #

Total comments: 8

Patch Set 5 : diff -r 36be76617915 https://go.googlecode.com/hg #

Total comments: 2

Patch Set 6 : diff -r 1098c239b9ad https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 258d7ab64d9a https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r 258d7ab64d9a https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 9 : diff -r 67d925cf4352 https://go.googlecode.com/hg #

Patch Set 10 : diff -r 67d925cf4352 https://go.googlecode.com/hg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -2 lines) Patch
M api/next.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/archive/tar/common.go View 1 2 3 4 5 6 7 8 2 chunks +62 lines, -1 line 0 comments Download
A src/pkg/archive/tar/stat_atim.go View 1 2 3 4 5 1 chunk +20 lines, -0 lines 0 comments Download
A src/pkg/archive/tar/stat_atimespec.go View 1 2 3 4 5 1 chunk +20 lines, -0 lines 0 comments Download
A src/pkg/archive/tar/stat_unix.go View 1 2 3 4 5 6 1 chunk +32 lines, -0 lines 0 comments Download
A src/pkg/archive/tar/tar_test.go View 1 2 3 4 5 6 7 8 1 chunk +56 lines, -0 lines 0 comments Download
M src/pkg/go/build/deps_test.go View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg
13 years ago (2012-03-12 21:44:39 UTC) #1
adg
http://codereview.appspot.com/5796073/diff/6001/src/pkg/archive/tar/common.go File src/pkg/archive/tar/common.go (right): http://codereview.appspot.com/5796073/diff/6001/src/pkg/archive/tar/common.go#newcode87 src/pkg/archive/tar/common.go:87: case fi.Mode()&os.ModeSymlink != 0: h.Typeflag = TypeSymlink ? http://codereview.appspot.com/5796073/diff/6001/src/pkg/archive/tar/common.go#newcode99 ...
13 years ago (2012-03-12 22:01:29 UTC) #2
bradfitz
http://codereview.appspot.com/5796073/diff/6001/src/pkg/archive/tar/common.go File src/pkg/archive/tar/common.go (right): http://codereview.appspot.com/5796073/diff/6001/src/pkg/archive/tar/common.go#newcode87 src/pkg/archive/tar/common.go:87: case fi.Mode()&os.ModeSymlink != 0: On 2012/03/12 22:01:30, adg wrote: ...
13 years ago (2012-03-12 22:03:53 UTC) #3
bradfitz
Hello golang-dev@googlegroups.com, adg@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years ago (2012-03-12 22:04:18 UTC) #4
adg
LGTM
13 years ago (2012-03-12 22:15:02 UTC) #5
bradfitz
Can you wait a couple hours on this? (or just patch it in locally if ...
13 years ago (2012-03-12 22:18:52 UTC) #6
adg
On 13 March 2012 09:18, Brad Fitzpatrick <bradfitz@golang.org> wrote: > Can you wait a couple ...
13 years ago (2012-03-12 22:34:37 UTC) #7
rsc
For the record, this CL is postponed until after Go 1.
13 years ago (2012-03-15 17:51:48 UTC) #8
Mike.Rosset
On 2012/03/12 21:44:39, bradfitz wrote: > Hello mailto:golang-dev@googlegroups.com, > > I'd like you to review ...
13 years ago (2012-03-15 23:18:04 UTC) #9
adg
Ping.
12 years, 10 months ago (2012-05-01 03:35:19 UTC) #10
rsc
http://codereview.appspot.com/5796073/diff/2004/src/pkg/archive/tar/common.go File src/pkg/archive/tar/common.go (right): http://codereview.appspot.com/5796073/diff/2004/src/pkg/archive/tar/common.go#newcode71 src/pkg/archive/tar/common.go:71: // The filename parameter is used only in the ...
12 years, 10 months ago (2012-05-03 21:41:47 UTC) #11
bradfitz
Hello adg@golang.org, rsc@golang.org, mike.rosset@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 9 months ago (2012-05-24 17:51:08 UTC) #12
bradfitz
Russ didn't like the old mostly-data-constructor-but-also-does-Readlink. Maybe this way is less offensive. Or at least ...
12 years, 9 months ago (2012-05-24 17:55:38 UTC) #13
rsc
No. The argument needs to be an os.FileInfo.
12 years, 9 months ago (2012-05-24 17:58:37 UTC) #14
bradfitz
On Thu, May 24, 2012 at 10:58 AM, Russ Cox <rsc@golang.org> wrote: > No. The ...
12 years, 9 months ago (2012-05-24 18:06:44 UTC) #15
rsc
Symlinks are a special case. What's wrong with FileInfoHeader(fi os.FileInfo, symlink string) ?
12 years, 9 months ago (2012-05-24 18:16:12 UTC) #16
bradfitz
On Thu, May 24, 2012 at 11:15 AM, Russ Cox <rsc@golang.org> wrote: > Symlinks are ...
12 years, 9 months ago (2012-05-24 18:25:14 UTC) #17
rsc
> So all callers look like: No, just the callers that think symlinks are worth ...
12 years, 9 months ago (2012-05-24 18:34:19 UTC) #18
bradfitz
Hello adg@golang.org, rsc@golang.org, mike.rosset@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 9 months ago (2012-05-24 18:35:49 UTC) #19
rsc
Can we not check a symlink into the repository? Surely it could be created during ...
12 years, 9 months ago (2012-05-24 20:48:53 UTC) #20
bradfitz
Hello adg@golang.org, rsc@golang.org, mike.rosset@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 9 months ago (2012-05-24 21:00:03 UTC) #21
rsc
LGTM
12 years, 9 months ago (2012-05-24 21:03:12 UTC) #22
bradfitz
*** Submitted as http://code.google.com/p/go/source/detail?r=608f3c08cb96 *** archive/tar: add FileInfoHeader function Fixes issue 3295 R=adg, rsc, mike.rosset ...
12 years, 9 months ago (2012-05-24 21:11:04 UTC) #23
bradfitz
12 years, 9 months ago (2012-05-24 21:13:21 UTC) #24
Note that I also updated deps_test.go in this CL (after talking to Russ),
as well as api/next.txt.

We probably don't need to update api/next.txt aggressively (it's not an
error if we forget it), but might as well if we remember.  I always do an
all.bash run before submitting anyway, so I just pasted it in once I saw
the all.bash noise.

On Thu, May 24, 2012 at 2:11 PM, <bradfitz@golang.org> wrote:

> *** Submitted as
>
http://code.google.com/p/go/**source/detail?r=608f3c08cb96<http://code.google...
>
> archive/tar: add FileInfoHeader function
>
> Fixes issue 3295
>
> R=adg, rsc, mike.rosset
> CC=golang-dev
>
http://codereview.appspot.com/**5796073<http://codereview.appspot.com/5796073>
>
>
>
http://codereview.appspot.com/**5796073/<http://codereview.appspot.com/5796073/>
>
Sign in to reply to this message.

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