svn-apply should handle unified diffs
authordburkart@apple.com <dburkart@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Nov 2015 18:46:58 +0000 (18:46 +0000)
committerdburkart@apple.com <dburkart@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Nov 2015 18:46:58 +0000 (18:46 +0000)
commitb8bc7d78218e7fd782c7456ebb8c73f1dab3c1bb
tree960b2e0aa7cad0c05fefd25e1b282d0906b9e4f1
parentde089a71b8713fc57cdcd2c913bc70b0425bae7e
svn-apply should handle unified diffs
https://bugs.webkit.org/show_bug.cgi?id=150650

Reviewed by Darin Adler.

* Scripts/VCSUtils.pm:
(parseUnifiedDiffHeader):
This method parses a unified diff header, and returns a information in the
style of parseGitDiffHeader and parseSvnDiffHeader.

(parseDiffHeader):
Teach parseDiffHeader to recognize unified diff headers.

(parseDiff):
Teach parseDiff to recognize unified diffs.

* Scripts/webkitperl/VCSUtils_unittest/parseDiffHeader.pl:
* Scripts/webkitperl/VCSUtils_unittest/parseUnifiedDiffHeader.pl: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191900 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/Scripts/VCSUtils.pm
Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffHeader.pl
Tools/Scripts/webkitperl/VCSUtils_unittest/parseUnifiedDiffHeader.pl [new file with mode: 0644]