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

Issue 4172060: code review 4172060: codereview: fix clpatch with empty diffs (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years ago by niemeyer
Modified:
13 years, 11 months ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

codereview: fix clpatch with empty diffs Avoid passing the placeholder diff to hgpatch, so that clpatch-ing an empty diff grabs the metadata and warns about it being empty, rather than failing with a hard-to-debug problem ("mkdir: no such file or dir", no metadata, etc).

Patch Set 1 #

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

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

Total comments: 1

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

Patch Set 5 : diff -r 4c45d4ff1665 https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 4c45d4ff1665 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 4c45d4ff1665 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -2 lines) Patch
M lib/codereview/codereview.py View 1 2 3 4 5 6 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 10
niemeyer
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years ago (2011-02-21 03:25:13 UTC) #1
adg
R=rsc
14 years ago (2011-02-21 23:04:40 UTC) #2
rsc
http://codereview.appspot.com/4172060/diff/3001/lib/codereview/codereview.py File lib/codereview/codereview.py (right): http://codereview.appspot.com/4172060/diff/3001/lib/codereview/codereview.py#newcode1139 lib/codereview/codereview.py:1139: if patch != emptydiff: while you're here, move the ...
14 years ago (2011-02-22 20:13:21 UTC) #3
niemeyer
> lib/codereview/codereview.py:1139: if patch != emptydiff: > while you're here, move the if err != ...
14 years ago (2011-02-23 04:24:35 UTC) #4
rsc
I'd prefer not to go down this road. hg clpatch is not for moving your ...
14 years ago (2011-02-23 05:08:45 UTC) #5
niemeyer
> I'd prefer not to go down this road. > > hg clpatch is not ...
14 years ago (2011-02-23 12:24:21 UTC) #6
rsc
>> hg clpatch is not for moving your own CLs from one machine to another. ...
14 years ago (2011-02-23 15:53:28 UTC) #7
niemeyer
Sounds good. Back to just fixing clpatch. PTAL Out of curiosity, here is the change ...
14 years ago (2011-02-23 16:24:54 UTC) #8
rsc
LGTM
14 years ago (2011-02-23 16:33:02 UTC) #9
rsc
14 years ago (2011-02-23 16:48:48 UTC) #10
*** Submitted as http://code.google.com/p/go/source/detail?r=24913ea25a1d ***

codereview: fix clpatch with empty diffs

Avoid passing the placeholder diff to hgpatch, so that
clpatch-ing an empty diff grabs the metadata and warns
about it being empty, rather than failing with a
hard-to-debug problem ("mkdir: no such file or dir",
no metadata, etc).

R=rsc
CC=golang-dev
http://codereview.appspot.com/4172060

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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