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

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

Created:
8 years, 6 months ago by cmp
Modified:
8 years, 6 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, Dirk Pranke, cmp+cc_chromium.org, M-A Ruel
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 ... (This change requires r141676 / https://chromiumcodereview.appspot.com/10543116/ which updates upload.py to use --find-copies-harder.) R=maruel@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141689

Patch Set 1 #

Total comments: 1

Patch Set 2 : reduce CL to only change git-cl #

Total comments: 2

Patch Set 3 : use --find-copies-harder #

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

Messages

Total messages: 7 (0 generated)
cmp
8 years, 6 months ago (2012-06-11 00:00:55 UTC) #1
M-A Ruel
https://chromiumcodereview.appspot.com/10545107/diff/1/third_party/upload.py File third_party/upload.py (right): https://chromiumcodereview.appspot.com/10545107/diff/1/third_party/upload.py#newcode1309 third_party/upload.py:1309: diff += RunShell(cmd + ["-C", "-C", "--diff-filter=ACMRT"] + extra_args, ...
8 years, 6 months ago (2012-06-11 00:01:59 UTC) #2
cmp
patch updated, ptal https://chromiumcodereview.appspot.com/10545107/diff/4001/git_cl.py File git_cl.py (right): https://chromiumcodereview.appspot.com/10545107/diff/4001/git_cl.py#newcode1131 git_cl.py:1131: ['git', 'diff', '--no-ext-diff', '--stat', '-C', '-C'] ...
8 years, 6 months ago (2012-06-12 17:51:45 UTC) #3
M-A Ruel
lgtm https://chromiumcodereview.appspot.com/10545107/diff/4001/git_cl.py File git_cl.py (right): https://chromiumcodereview.appspot.com/10545107/diff/4001/git_cl.py#newcode1131 git_cl.py:1131: ['git', 'diff', '--no-ext-diff', '--stat', '-C', '-C'] + args, ...
8 years, 6 months ago (2012-06-12 18:07:02 UTC) #4
cmp
updated to use --find-copies-harder
8 years, 6 months ago (2012-06-12 18:12:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cmp@chromium.org/10545107/9001
8 years, 6 months ago (2012-06-12 18:12:43 UTC) #6
commit-bot: I haz the power
8 years, 6 months ago (2012-06-12 18:20:14 UTC) #7
Change committed as 141689

Powered by Google App Engine
This is Rietveld 408576698