Bug 112732

Summary: svn-apply has trouble applying a patch that adds a Windows newline to EOF
Product: WebKit Reporter: Daniel Bates <dbates>
Component: Tools / TestsAssignee: Daniel Bates <dbates>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, ddkilzer, eric, jamesr, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch and unit tests eric: review+

Daniel Bates
Reported 2013-03-19 12:18:28 PDT
When using svn-apply to applying attachment 193158 [details] (bug 112306) on my Mac with an SVN checkout at r145854, svn-apply failed with the following output: dbates:WebKit dbates$ Tools/Scripts/svn-apply /Users/dbates/Desktop/bug-112306-20130314112306.patch.txt Parsed 20 diffs from patch file(s). patching file LayoutTests/ChangeLog Hunk #1 succeeded at 1 with fuzz 3. patching file LayoutTests/editing/inserting/insert-text-into-empty-frameset-crash.html patching file LayoutTests/editing/style/apply-style-crash.html patching file LayoutTests/fast/block/float/float-originating-line-deleted-crash.html Hunk #2 FAILED at 11. 1 out of 2 hunks FAILED -- saving rejects to file LayoutTests/fast/block/float/float-originating-line-deleted-crash.html.rej Calling "patch -p0" for file "LayoutTests/fast/block/float/float-originating-line-deleted-crash.html" returned status 1. Pass --force to ignore patch failures.
Attachments
Patch and unit tests (11.12 KB, patch)
2013-03-19 12:20 PDT, Daniel Bates
eric: review+
Daniel Bates
Comment 1 2013-03-19 12:20:58 PDT
Created attachment 193896 [details] Patch and unit tests
James Robinson
Comment 2 2013-03-19 12:24:21 PDT
Thanks for the patch! Unfortunately I don't know enough about perl or patch to be able to review this.
WebKit Review Bot
Comment 3 2013-03-19 12:24:51 PDT
Attachment 193896 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Tools/ChangeLog', u'Tools/Scripts/VCSUtils.pm', u'Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl']" exit_code: 1 Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl:181: Line contains tab character. [whitespace/tab] [5] Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl:182: Line contains tab character. [whitespace/tab] [5] Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl:197: Line contains tab character. [whitespace/tab] [5] Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl:198: Line contains tab character. [whitespace/tab] [5] Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl:221: Line contains tab character. [whitespace/tab] [5] Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl:222: Line contains tab character. [whitespace/tab] [5] Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl:232: Line contains tab character. [whitespace/tab] [5] Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl:233: Line contains tab character. [whitespace/tab] [5] Total errors found: 8 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
Daniel Bates
Comment 4 2013-03-19 12:27:35 PDT
(In reply to comment #3) > Attachment 193896 [details] did not pass style-queue: > > Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Tools/ChangeLog', u'Tools/Scripts/VCSUtils.pm', u'Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl']" exit_code: 1 > Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl:181: Line contains tab character. [whitespace/tab] [5] > [...] > Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl:233: Line contains tab character. [whitespace/tab] [5] > Total errors found: 8 in 3 files > > > If any of these errors are false positives, please file a bug against check-webkit-style. These tabs are intentional as the unit tests contain diff snippets that are representative of actual diffs.
Eric Seidel (no email)
Comment 5 2013-03-19 13:02:27 PDT
Comment on attachment 193896 [details] Patch and unit tests Seems reasonable. Darin Adler is probably your best reviewer here.
Daniel Bates
Comment 6 2013-03-19 13:26:27 PDT
CC'ing Darin Adler so that he can see this patch go by per Eric Seidel's remark in comment 5.
Daniel Bates
Comment 7 2013-03-19 13:29:49 PDT
Note You need to log in before you can comment on or make changes to this bug.