Title: [201242] trunk/Tools
Revision
201242
Author
[email protected]
Date
2016-05-21 10:10:39 -0700 (Sat, 21 May 2016)

Log Message

Silence warnings from svn propget when using newer versions of Subversion.
https://bugs.webkit.org/show_bug.cgi?id=157879

Reviewed by Daniel Bates.

* Scripts/prepare-ChangeLog:
(attributeCommand): Redirect svn propget stderr to /dev/null.
* Scripts/svn-create-patch:
(findMimeType): Ditto.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (201241 => 201242)


--- trunk/Tools/ChangeLog	2016-05-21 06:15:09 UTC (rev 201241)
+++ trunk/Tools/ChangeLog	2016-05-21 17:10:39 UTC (rev 201242)
@@ -1,3 +1,15 @@
+2016-05-21  Dan Bernstein  <[email protected]>
+
+        Silence warnings from svn propget when using newer versions of Subversion.
+        https://bugs.webkit.org/show_bug.cgi?id=157879
+
+        Reviewed by Daniel Bates.
+
+        * Scripts/prepare-ChangeLog:
+        (attributeCommand): Redirect svn propget stderr to /dev/null.
+        * Scripts/svn-create-patch:
+        (findMimeType): Ditto.
+
 2016-05-20  Ryosuke Niwa  <[email protected]>
 
         run-benchmark's results should contain Animometer's debug output

Modified: trunk/Tools/Scripts/prepare-ChangeLog (201241 => 201242)


--- trunk/Tools/Scripts/prepare-ChangeLog	2016-05-21 06:15:09 UTC (rev 201241)
+++ trunk/Tools/Scripts/prepare-ChangeLog	2016-05-21 17:10:39 UTC (rev 201242)
@@ -124,6 +124,7 @@
 use constant GIT => "git";
 use constant SupportedTestExtensions => {map { $_ => 1 } qw(html shtml svg xml xhtml pl php)};
 
+my $devNull = File::Spec->devnull();
 my %attributeCache;
 
 exit(main());
@@ -1997,7 +1998,7 @@
                 next;
             }
             my $command = SVN . " propget $attr '$subPath'";
-            my $attrib = $attributeCache{$attr}{$subPath} || `$command`;
+            my $attrib = $attributeCache{$attr}{$subPath} || `$command 2> $devNull`;
             chomp $attrib;
             if ($attrib eq "1") {
                 $foundAttribute = 1;

Modified: trunk/Tools/Scripts/svn-create-patch (201241 => 201242)


--- trunk/Tools/Scripts/svn-create-patch	2016-05-21 06:15:09 UTC (rev 201241)
+++ trunk/Tools/Scripts/svn-create-patch	2016-05-21 17:10:39 UTC (rev 201242)
@@ -172,7 +172,7 @@
     my ($file, $revision) = @_;
     my $args = $revision ? "--revision $revision" : "";
     my $escapedFile = escapeSubversionPath($file);
-    open PROPGET, "svn propget svn:mime-type $args '$escapedFile' |" or die;
+    open PROPGET, "svn propget svn:mime-type $args '$escapedFile' 2> $devNull |" or die;
     my $mimeType = <PROPGET>;
     close PROPGET;
     # svn may output a different EOL sequence than $/, so avoid chomp.
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to