As we are getting ready for handling git binary patches, let's add --binary option into Git.create_patch() in scm.py.
Created attachment 43139 [details] Patch v1
Note that the unittest I added will fail due to Bug 31457 .
Comment on attachment 43139 [details] Patch v1 Ah, I should have modified create_patch_from_local_commit and create_patch_since_local_commit as well. Clearing the review bit.
Created attachment 43141 [details] Patch v2
(In reply to comment #4) > Created an attachment (id=43141) [details] > Patch v2 I added --binary flag for these two commands as well.
Comment on attachment 43141 [details] Patch v2 LGTM.
Comment on attachment 43141 [details] Patch v2 Clearing flags on attachment: 43141 Committed r51005: <http://trac.webkit.org/changeset/51005>
All reviewed patches have been landed. Closing bug.
(In reply to comment #8) > All reviewed patches have been landed. Closing bug. Thanks for landing this patch. However, this patch will make unittest (GitTest.test_create_binary_patch) fail until Bug 31457 will be fixed. I guess we don't need to rollback this change because unittests aren't running in buildbot. I'll ask someone to review Bug 31457. I think I should have set commit-queue- for this patch to mention this fact, sorry.