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

Issue 577203002: Use three-way merge when applying Git patches. (Closed)

Created:
6 years, 3 months ago by Primiano Tucci (use gerrit)
Modified:
6 years, 3 months ago
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Project:
tools
Visibility:
Public.

Description

Use three-way merge when applying Git patches. After switching to a pure git workflow, most of the patchset we upload to rietveld have git metadata. Apparently, however, the scripts here in depot tools, which are used by the CQ and trybots, are ignoring that and applying patches without taking advantage of git metadata. In practice this causes people to rebase and reupload patches more than necessary, even in the cases when it could be handled automatically by means of a three way merge. This change updates the GitCheckout class of depot_tools to use that. BUG=416003 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=292087

Patch Set 1 #

Patch Set 2 : Fix test #

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

Messages

Total messages: 21 (5 generated)
Primiano Tucci (use gerrit)
Infra folks, is there any reason why this is not using three way merge already? ...
6 years, 3 months ago (2014-09-18 09:04:35 UTC) #2
Torne
On 2014/09/18 09:04:35, Primiano Tucci wrote: > There are a lot of cases in which ...
6 years, 3 months ago (2014-09-18 09:06:45 UTC) #3
M-A Ruel
On 2014/09/18 09:06:45, Torne wrote: > On 2014/09/18 09:04:35, Primiano Tucci wrote: > > There ...
6 years, 3 months ago (2014-09-18 17:09:26 UTC) #5
Primiano Tucci (use gerrit)
On 2014/09/18 17:09:26, M-A Ruel wrote: > On 2014/09/18 09:06:45, Torne wrote: > > On ...
6 years, 3 months ago (2014-09-18 17:42:16 UTC) #6
Sergey Berezin
CQ no longer uses depot_tools/checkout.py, it forked its own copy (for many complicated reasons). You'd ...
6 years, 3 months ago (2014-09-18 17:44:14 UTC) #7
Paweł Hajdan Jr.
This is still used by apply_issue on the tryserver, right? In that case I'm inclined ...
6 years, 3 months ago (2014-09-18 23:50:59 UTC) #8
Sergey Berezin
> Hmm but in that case (things are a bit fuzzed and the merge result ...
6 years, 3 months ago (2014-09-19 00:15:53 UTC) #9
agable
On 2014/09/19 00:15:53, Sergey Berezin wrote: > > Hmm but in that case (things are ...
6 years, 3 months ago (2014-09-19 08:36:56 UTC) #10
Primiano Tucci (use gerrit)
Thanks everybody for all the discussion and for pointing out that this is NOT the ...
6 years, 3 months ago (2014-09-19 10:26:57 UTC) #11
Primiano Tucci (use gerrit)
Trying to come up with some data (see inline): > 1. percentage of CLs rejected ...
6 years, 3 months ago (2014-09-19 15:34:27 UTC) #12
Sergey Berezin
Thanks for the script! I filed a bug http://crbug.com/416003 and added it to this issue.
6 years, 3 months ago (2014-09-19 16:31:18 UTC) #13
Paweł Hajdan Jr.
LGTM
6 years, 3 months ago (2014-09-23 00:58:52 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/577203002/1
6 years, 3 months ago (2014-09-23 07:51:13 UTC) #16
commit-bot: I haz the power
Presubmit check for 577203002-1 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 3 months ago (2014-09-23 07:53:24 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/577203002/20001
6 years, 3 months ago (2014-09-23 08:12:36 UTC) #20
commit-bot: I haz the power
6 years, 3 months ago (2014-09-23 08:14:41 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as 292087

Powered by Google App Engine
This is Rietveld 408576698