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

Issue 10412027: Turn on git diff copy detection for git-cl upload. (Closed)

Created:
8 years, 7 months ago by cmp
Modified:
8 years, 6 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, Dirk Pranke, cmp+cc_chromium.org, Nicolas Sylvain
Visibility:
Public.

Description

Turn on git diff copy detection for git-cl upload. Enable copy detection for git-cl upload. This makes it possible to copy a directory containing many files, add+commit the new path, and then upload a patch to Rietveld that shows the files were copied. In my tests, -C -C was needed to pick up a basic file copy. -C was not enough. I'm not sure why exactly. The output generated in the diff looks like: sh$ git diff -C -C HEAD~1..HEAD diff --git a/slave/Makefile b/slave2/Makefile similarity index 100% copy from slave/Makefile copy to slave2/Makefile ... Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140314

Patch Set 1 #

Total comments: 3

Patch Set 2 : use -C -C #

Total comments: 1

Patch Set 3 : need to update upload.py which actually creates and sends the diff #

Patch Set 4 : update tests #

Patch Set 5 : use extra args instead of modifying upload.py #

Patch Set 6 : fix test #

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

Messages

Total messages: 20 (0 generated)
cmp
8 years, 7 months ago (2012-05-21 23:48:43 UTC) #1
cmp
FYI bunches of tests failed due to this change, it will need more work before ...
8 years, 7 months ago (2012-05-21 23:51:20 UTC) #2
M-A Ruel
https://chromiumcodereview.appspot.com/10412027/diff/1/git_cl.py File git_cl.py (right): https://chromiumcodereview.appspot.com/10412027/diff/1/git_cl.py#newcode1116 git_cl.py:1116: '--find-copies-harder'] + args, env=env) You mean -C -C or ...
8 years, 7 months ago (2012-05-22 20:26:11 UTC) #3
cmp
https://chromiumcodereview.appspot.com/10412027/diff/1/git_cl.py File git_cl.py (right): https://chromiumcodereview.appspot.com/10412027/diff/1/git_cl.py#newcode1116 git_cl.py:1116: '--find-copies-harder'] + args, env=env) On 2012/05/22 20:26:11, Marc-Antoine Ruel ...
8 years, 7 months ago (2012-05-22 20:31:30 UTC) #4
M-A Ruel
On 2012/05/22 20:31:30, cmp wrote: > https://chromiumcodereview.appspot.com/10412027/diff/1/git_cl.py > File git_cl.py (right): > > https://chromiumcodereview.appspot.com/10412027/diff/1/git_cl.py#newcode1116 > ...
8 years, 7 months ago (2012-05-22 20:34:44 UTC) #5
cmp
https://chromiumcodereview.appspot.com/10412027/diff/1/git_cl.py File git_cl.py (right): https://chromiumcodereview.appspot.com/10412027/diff/1/git_cl.py#newcode1116 git_cl.py:1116: '--find-copies-harder'] + args, env=env) Done.
8 years, 7 months ago (2012-05-22 20:43:20 UTC) #6
M-A Ruel
https://chromiumcodereview.appspot.com/10412027/diff/7001/git_cl.py File git_cl.py (right): https://chromiumcodereview.appspot.com/10412027/diff/7001/git_cl.py#newcode1115 git_cl.py:1115: ['git', 'diff', '--no-ext-diff', '--stat', '-C', '-C'] + args, env=env) ...
8 years, 7 months ago (2012-05-22 20:48:19 UTC) #7
cmp
On 2012/05/22 20:48:19, Marc-Antoine Ruel wrote: > Ok, so now that the intent is clear, ...
8 years, 7 months ago (2012-05-22 20:54:37 UTC) #8
M-A Ruel
On 2012/05/22 20:54:37, cmp wrote: > On 2012/05/22 20:48:19, Marc-Antoine Ruel wrote: > > Ok, ...
8 years, 7 months ago (2012-05-22 21:02:01 UTC) #9
cmp
On 2012/05/22 21:02:01, Marc-Antoine Ruel wrote: > I know about that, but a file copy ...
8 years, 7 months ago (2012-05-22 21:11:45 UTC) #10
M-A Ruel
lgtm
8 years, 7 months ago (2012-05-22 22:36:04 UTC) #11
cmp
fyi, i found that upload.py (not git_cl.py) is responsible for the real-diff-sending part of the ...
8 years, 6 months ago (2012-05-30 21:47:20 UTC) #12
cmp
updated tests, will land soon
8 years, 6 months ago (2012-05-30 22:00:01 UTC) #13
cmp
I saw that git-svn had some -C/--copy-similarity arg handling and tried using it in the ...
8 years, 6 months ago (2012-05-30 22:40:35 UTC) #14
M-A Ruel
lgtm
8 years, 6 months ago (2012-05-30 22:58:10 UTC) #15
cmp
fyi, marc-antoine says that things will just work with trybots+commit queue after this lands
8 years, 6 months ago (2012-06-01 19:25:35 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cmp@chromium.org/10412027/19001
8 years, 6 months ago (2012-06-04 16:33:04 UTC) #17
commit-bot: I haz the power
Presubmit check for 10412027-19001 failed and returned exit status 1. warning: code.google.com certificate with fingerprint ...
8 years, 6 months ago (2012-06-04 16:40:23 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cmp@chromium.org/10412027/24001
8 years, 6 months ago (2012-06-04 17:09:53 UTC) #19
commit-bot: I haz the power
8 years, 6 months ago (2012-06-04 17:17:40 UTC) #20
Change committed as 140314

Powered by Google App Engine
This is Rietveld 408576698