Title: [288068] trunk/Tools
Revision
288068
Author
[email protected]
Date
2022-01-15 15:10:21 -0800 (Sat, 15 Jan 2022)

Log Message

Only use `diff --binary` switch on Windows
<https://webkit.org/b/235268>
<rdar://problem/87490487>

Reviewed by Alexey Proskuryakov.

* Scripts/VCSUtils.pm:
(mergeChangeLogs):
- Only pass `--binary` switch on Windows.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (288067 => 288068)


--- trunk/Tools/ChangeLog	2022-01-15 22:29:21 UTC (rev 288067)
+++ trunk/Tools/ChangeLog	2022-01-15 23:10:21 UTC (rev 288068)
@@ -1,3 +1,15 @@
+2022-01-15  David Kilzer  <[email protected]>
+
+        Only use `diff --binary` switch on Windows
+        <https://webkit.org/b/235268>
+        <rdar://problem/87490487>
+
+        Reviewed by Alexey Proskuryakov.
+
+        * Scripts/VCSUtils.pm:
+        (mergeChangeLogs):
+        - Only pass `--binary` switch on Windows.
+
 2022-01-15  Frédéric Wang  <[email protected]>
 
         Bug 234910 - jsc_fuz/wktr: crash with exotic settings

Modified: trunk/Tools/Scripts/VCSUtils.pm (288067 => 288068)


--- trunk/Tools/Scripts/VCSUtils.pm	2022-01-15 22:29:21 UTC (rev 288067)
+++ trunk/Tools/Scripts/VCSUtils.pm	2022-01-15 23:10:21 UTC (rev 288068)
@@ -2148,7 +2148,8 @@
         rename($fileMine, "$fileMine.save");
         rename($fileOlder, "$fileOlder.save");
     } else {
-        open(DIFF, "diff -u -a --binary \"$fileOlder\" \"$fileMine\" |") or die $!;
+        my $binarySwitch = isWindows() ? "--binary" : "";
+        open(DIFF, "diff -u -a $binarySwitch \"$fileOlder\" \"$fileMine\" |") or die $!;
         $patch = <DIFF>;
         close(DIFF);
     }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to