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

Unified Diff: checkout.py

Issue 577203002: Use three-way merge when applying Git patches. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Fix test Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/checkout_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: checkout.py
diff --git a/checkout.py b/checkout.py
index 5dbb375caad2f0dd0e37fff83f862d8e57a3218b..8d5cccecdc6ef1bfe1817aa3a54a2cebff1cf2ef 100644
--- a/checkout.py
+++ b/checkout.py
@@ -676,7 +676,7 @@ class GitCheckout(CheckoutBase):
else:
# No need to do anything special with p.is_new or if not
# p.diff_hunks. git apply manages all that already.
- cmd = ['apply', '--index', '-p%s' % p.patchlevel]
+ cmd = ['apply', '--index', '-3', '-p%s' % p.patchlevel]
if verbose:
cmd.append('--verbose')
stdout.append(self._check_output_git(cmd, stdin=p.get(True)))
« no previous file with comments | « no previous file | tests/checkout_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698