Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Issue 10945002: Add option to specify similarity level for git diff operations on commandline (Closed)

Created:
8 years, 3 months ago by iannucci
Modified:
8 years, 2 months ago
Reviewers:
cmp, szager, M-A Ruel
CC:
chromium-reviews, Dirk Pranke, cmp+cc_chromium.org, Nicolas Sylvain
Base URL:
https://git.chromium.org/chromium/tools/depot_tools.git@master
Visibility:
Public.

Description

Add option to specify similarity level for git diff operations on commandline BUG=125983 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=159732

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : Make similarity sticky, and simplify commandline options #

Patch Set 4 : Fix tests, refactor a bit #

Patch Set 5 : Add a positive test for setting similarity #

Total comments: 6

Patch Set 6 : Fix a nit #

Total comments: 1

Patch Set 7 : rebase (which includes upstreamed upload.py, thanks m-a :)) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -17 lines) Patch
M git_cl.py View 1 2 3 4 5 6 9 chunks +44 lines, -4 lines 0 comments Download
M tests/git_cl_test.py View 1 2 3 4 12 chunks +44 lines, -13 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
iannucci
8 years, 3 months ago (2012-09-18 01:39:05 UTC) #1
cmp
lgtm with nits https://codereview.chromium.org/10945002/diff/2001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/10945002/diff/2001/git_cl.py#newcode1684 git_cl.py:1684: '-C', '-M', '--git_similarity', '--find-copies-harder', type='int', let's ...
8 years, 3 months ago (2012-09-18 01:44:15 UTC) #2
M-A Ruel
I prefer it to be a: 1. A branch-specific variable, set and read with git ...
8 years, 3 months ago (2012-09-18 10:22:59 UTC) #3
szager
The CL lgtm, but how comfortable are we all with 50% as the default? It ...
8 years, 3 months ago (2012-09-18 17:05:00 UTC) #4
iannucci
On 2012/09/18 01:44:15, cmp wrote: > lgtm with nits > > https://codereview.chromium.org/10945002/diff/2001/git_cl.py > File git_cl.py ...
8 years, 3 months ago (2012-09-18 17:16:05 UTC) #5
iannucci
On 2012/09/18 17:05:00, szager wrote: > The CL lgtm, but how comfortable are we all ...
8 years, 3 months ago (2012-09-18 17:16:42 UTC) #6
iannucci
On 2012/09/18 10:22:59, Marc-Antoine Ruel wrote: > I prefer it to be a: > 1. ...
8 years, 3 months ago (2012-09-18 17:18:22 UTC) #7
M-A Ruel
On 2012/09/18 17:18:22, iannucci wrote: > On 2012/09/18 10:22:59, Marc-Antoine Ruel wrote: > > I ...
8 years, 3 months ago (2012-09-18 17:25:43 UTC) #8
iannucci
On 2012/09/18 17:25:43, Marc-Antoine Ruel wrote: > On 2012/09/18 17:18:22, iannucci wrote: > > On ...
8 years, 3 months ago (2012-09-18 17:35:13 UTC) #9
iannucci
On 2012/09/18 17:16:05, iannucci wrote: > On 2012/09/18 01:44:15, cmp wrote: > > lgtm with ...
8 years, 3 months ago (2012-09-18 23:51:16 UTC) #10
M-A Ruel
On 2012/09/18 23:51:16, iannucci wrote: > It's git_similarity in upload.py b/c of the other args ...
8 years, 3 months ago (2012-09-19 00:04:40 UTC) #11
iannucci
New logic, PTAL. The sticky thing is actually pretty convenient :).
8 years, 3 months ago (2012-09-19 02:53:46 UTC) #12
iannucci
@maruel PTAL at the new git similarity stashing logic. I'm adding a new positive test ...
8 years, 3 months ago (2012-09-24 22:36:10 UTC) #13
iannucci
Ok, added a positive test cast for setting similarity... It feels a little kludgey, but ...
8 years, 3 months ago (2012-09-24 23:15:55 UTC) #14
M-A Ruel
technically, lgtm. I'd prefer the upload.py change to be upstreamed first then update back here. ...
8 years, 3 months ago (2012-09-25 01:25:02 UTC) #15
iannucci
https://codereview.chromium.org/10945002/diff/17001/git_cl.py File git_cl.py (right): https://codereview.chromium.org/10945002/diff/17001/git_cl.py#newcode111 git_cl.py:111: options.similarity = int(stdout.strip()) On 2012/09/25 01:25:02, Marc-Antoine Ruel wrote: ...
8 years, 3 months ago (2012-09-25 02:01:47 UTC) #16
M-A Ruel
Do you want me to push upload.py upstream or you want to do it? https://codereview.chromium.org/10945002/diff/19002/git_cl.py ...
8 years, 2 months ago (2012-09-27 14:29:01 UTC) #17
iannucci
On 2012/09/27 14:29:01, Marc-Antoine Ruel wrote: > Do you want me to push upload.py upstream ...
8 years, 2 months ago (2012-09-27 17:52:29 UTC) #18
iannucci
On 2012/09/27 17:52:29, iannucci wrote: > On 2012/09/27 14:29:01, Marc-Antoine Ruel wrote: > > Do ...
8 years, 2 months ago (2012-09-27 19:21:31 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/iannucci@chromium.org/10945002/25001
8 years, 2 months ago (2012-10-02 18:17:10 UTC) #20
commit-bot: I haz the power
8 years, 2 months ago (2012-10-02 18:20:52 UTC) #21
Change committed as 159732

Powered by Google App Engine
This is Rietveld 408576698