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

Issue 4333051: Fix support for renamed files, aka git mv in upload.py. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 11 months ago by M-A
Modified:
12 years, 8 months ago
CC:
codereview-discuss_googlegroups.com, cmp
Base URL:
https://rietveld.googlecode.com/svn/trunk
Visibility:
Public.

Description

Fix support for renamed files, aka git mv in upload.py. Adds usage of -C -C. With limited testing on the chromium tree of ~36k files, it adds a few tens of percent to the time required to generate the diff. Prior this change, a renamed file would only have the new file listed on rietveld and not the previous one. This is caused by the default behavior of "git diff". This change calls "git diff" two times to extract all the necessary data. BUG=251

Patch Set 1 #

Patch Set 2 : Reviving old CL #

Patch Set 3 : Fix 80 cols #

Total comments: 5

Patch Set 4 : Address review comments #

Patch Set 5 : Reinstate break #

Patch Set 6 : fix grammar #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -4 lines) Patch
M upload.py View 1 2 3 4 5 1 chunk +19 lines, -4 lines 0 comments Download

Messages

Total messages: 12
M-A
For a live example, these two uploads were made by the exact same git branch: ...
13 years, 11 months ago (2011-03-31 18:13:03 UTC) #1
Andi Albrecht
How do you call git then? I've tested it locally, but upload.py returned an error. ...
13 years, 11 months ago (2011-04-01 12:26:31 UTC) #2
M-A
The problem is that we use it quite differently: You assume that you want to ...
13 years, 11 months ago (2011-04-02 01:24:02 UTC) #3
Andi Albrecht
maruel@chromium.org writes: > The problem is that we use it quite differently: > > You ...
13 years, 11 months ago (2011-04-02 05:55:18 UTC) #4
M-A
On 2011/04/02 05:55:18, Andi Albrecht wrote: > > The code somewhat assumes that extra_args can ...
13 years, 10 months ago (2011-04-19 17:10:52 UTC) #5
M-A
On 2011/04/19 17:10:52, M-A wrote: > On 2011/04/02 05:55:18, Andi Albrecht wrote: > > > ...
13 years, 10 months ago (2011-05-05 16:49:07 UTC) #6
mr.kschan
On 2011/05/05 16:49:07, M-A wrote: > On 2011/04/19 17:10:52, M-A wrote: > > On 2011/04/02 ...
13 years, 9 months ago (2011-05-25 10:07:12 UTC) #7
Andi Albrecht
On Wed, May 25, 2011 at 12:07 PM, <mr.kschan@gmail.com> wrote: > On 2011/05/05 16:49:07, M-A ...
13 years, 9 months ago (2011-05-25 10:53:57 UTC) #8
M-A
Reviving a very old CL. I had committed it to the chromium branch but not ...
12 years, 8 months ago (2012-06-11 20:24:26 UTC) #9
Andi Albrecht
http://codereview.appspot.com/4333051/diff/12002/upload.py File upload.py (right): http://codereview.appspot.com/4333051/diff/12002/upload.py#newcode338 upload.py:338: break Not by your change, but this break could ...
12 years, 8 months ago (2012-06-12 07:24:53 UTC) #10
M-A
ptal http://codereview.appspot.com/4333051/diff/12002/upload.py File upload.py (right): http://codereview.appspot.com/4333051/diff/12002/upload.py#newcode338 upload.py:338: break On 2012/06/12 07:24:53, Andi Albrecht wrote: > ...
12 years, 8 months ago (2012-06-12 16:36:41 UTC) #11
Andi Albrecht
12 years, 8 months ago (2012-06-12 16:51:06 UTC) #12
LGTM

http://codereview.appspot.com/4333051/diff/12002/upload.py
File upload.py (right):

http://codereview.appspot.com/4333051/diff/12002/upload.py#newcode338
upload.py:338: break
On 2012/06/12 16:36:41, M-A wrote:
> On 2012/06/12 07:24:53, Andi Albrecht wrote:
> > Not by your change, but this break could be removed :) (just a reminder...)
> 
> I did it initially but upon re-reading, the break is not a no-op, it's
actually
> returning a valid credential, so the break is to stop from looping. I don't
> think this should be removed. In any case, I'd prefer not do it in this CL.
oh, you're right. I've missed the outer loop!
Sign in to reply to this message.

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