RESOLVED INVALID 184341
[test262] Mark line-terminator-normalisation-CR.js as a binary file.
https://bugs.webkit.org/show_bug.cgi?id=184341
Summary [test262] Mark line-terminator-normalisation-CR.js as a binary file.
Ross Kirsling
Reported 2018-04-05 15:45:06 PDT
[test262] Mark line-terminator-normalisation-CR.js as a binary file.
Attachments
Patch (1.08 KB, patch)
2018-04-05 15:50 PDT, Ross Kirsling
no flags
Ross Kirsling
Comment 1 2018-04-05 15:50:01 PDT
Yusuke Suzuki
Comment 2 2018-04-05 19:13:03 PDT
Comment on attachment 337307 [details] Patch r=me
WebKit Commit Bot
Comment 3 2018-04-05 19:38:46 PDT
Comment on attachment 337307 [details] Patch Clearing flags on attachment: 337307 Committed r230320: <https://trac.webkit.org/changeset/230320>
WebKit Commit Bot
Comment 4 2018-04-05 19:38:47 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 5 2018-04-05 19:39:19 PDT
Alexey Proskuryakov
Comment 6 2018-04-05 19:46:54 PDT
Does this need to be fixed for svn too? One can directly specify cr line endings for svn, no need to revert to binary.
Yusuke Suzuki
Comment 7 2018-04-05 20:24:07 PDT
(In reply to Alexey Proskuryakov from comment #6) > Does this need to be fixed for svn too? One can directly specify cr line > endings for svn, no need to revert to binary. I checked .gitattributes change like https://bugs.webkit.org/show_bug.cgi?id=58315 and I cannot find any SVN property changes in that patch. But specifying `svn propset svn:mime-type application/octet-stream file` would be nice. Do we have the way to do the above thing in git WebKit tree?
Yusuke Suzuki
Comment 8 2018-04-05 20:31:14 PDT
(In reply to Yusuke Suzuki from comment #7) > (In reply to Alexey Proskuryakov from comment #6) > > Does this need to be fixed for svn too? One can directly specify cr line > > endings for svn, no need to revert to binary. > > I checked .gitattributes change like > https://bugs.webkit.org/show_bug.cgi?id=58315 and I cannot find any SVN > property changes in that patch. > But specifying `svn propset svn:mime-type application/octet-stream file` > would be nice. Do we have the way to do the above thing in git WebKit tree? Hmmmm, git-svn do not have the way to set prop............. https://stackoverflow.com/questions/1271449/how-to-set-subversion-properties-with-git-svn
Yusuke Suzuki
Comment 9 2018-04-05 20:39:56 PDT
BTW, I'm now attempting to apply https://bugs.webkit.org/show_bug.cgi?id=184266 to my git-managed WebKit tree by Tools/Scripts/webkit-patch apply-from-bug. If this patch is effective, we will get it applied.
Ross Kirsling
Comment 10 2018-04-05 20:51:29 PDT
(In reply to Alexey Proskuryakov from comment #6) > Does this need to be fixed for svn too? One can directly specify cr line > endings for svn, no need to revert to binary. Ah yes, seems like we ought to do something like this for good measure: https://trac.webkit.org/changeset/199564/webkit Unfortunately though, since `svn-apply` can't handle files with CR line endings (due to performing its own line ending normalization based on the first line ending it encounters in the patch), I think marking it as binary is the only way to ensure its contents don't appear in the patch file? (In reply to Yusuke Suzuki from comment #9) > BTW, I'm now attempting to apply > https://bugs.webkit.org/show_bug.cgi?id=184266 to my git-managed WebKit tree > by Tools/Scripts/webkit-patch apply-from-bug. If this patch is effective, we > will get it applied. Note that the existing patch on that bug won't work -- we need a new diff of the same changes, which will then treat this file as binary.
Alexey Proskuryakov
Comment 11 2018-04-05 21:29:17 PDT
I don't think we ever needed to use binary for text files with svn, adding svn:eol-style should just work I hope.
Ross Kirsling
Comment 12 2018-04-05 23:23:52 PDT
Oh geez. I just realized that the problem isn't svn-apply's fault at all -- it's that the offending file ends in CRLF. Just confirmed that the file can be patched normally if this is corrected, so I think we can just rollout the change in this bug.
Ross Kirsling
Comment 13 2018-04-05 23:56:52 PDT
Reverted r230320 for reason: Revert Committed r230329: <https://trac.webkit.org/changeset/230329>
Alexey Proskuryakov
Comment 14 2018-04-06 09:26:29 PDT
I added the svn property in r230333 nonetheless.
Note You need to log in before you can comment on or make changes to this bug.