Bug 157879 - Silence warnings from svn propget when using newer versions of Subversion
Summary: Silence warnings from svn propget when using newer versions of Subversion
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: mitz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-18 19:52 PDT by mitz
Modified: 2016-05-21 10:09 PDT (History)
4 users (show)

See Also:


Attachments
Patch (1.90 KB, patch)
2016-05-18 19:52 PDT, mitz
dbates: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2016-05-18 19:52:01 PDT
Silence warnings from svn propget when using newer versions of Subversion
Comment 1 mitz 2016-05-18 19:52:25 PDT
Created attachment 279340 [details]
Patch
Comment 2 WebKit Commit Bot 2016-05-18 19:55:11 PDT
Attachment 279340 [details] did not pass style-queue:


ERROR: Tools/ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
Total errors found: 1 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Daniel Bates 2016-05-18 22:21:41 PDT
Comment on attachment 279340 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=279340&action=review

> Tools/ChangeLog:4
> +        Silence warnings from svn propget when using newer versions of Subversion.
> +

As mentioned by the style bot in comment #2, this ChangeLog is missing a bug URL. Please add the bug URL before landing.

> Tools/Scripts/prepare-ChangeLog:2000
> +            my $attrib = $attributeCache{$attr}{$subPath} || `$command 2> /dev/null`;

Please use File::Spec->devnull() instead of hardcoding /dev/null since this script should be platform agnostic.

> Tools/Scripts/svn-create-patch:175
> +    open PROPGET, "svn propget svn:mime-type $args '$escapedFile' 2> /dev/null |" or die;

Ditto.
Comment 4 Alexey Proskuryakov 2016-05-18 22:38:19 PDT
What are these warnings, can they fixed for good?
Comment 5 mitz 2016-05-21 10:05:42 PDT
(In reply to comment #4)
> What are these warnings, can they fixed for good?

svn propget warns if the property isn’t found:

$  svn propget myproperty .
svn: warning: W200017: Property 'myproperty' not found on ''
svn: E200000: A problem occurred; see other errors for details

I couldn’t find a way to fix it. One could avoid the warning by using svn proplist first to check for the property, but that seems unnecessarily more complex.
Comment 6 mitz 2016-05-21 10:09:49 PDT
Committed <http://trac.webkit.org/r201242>.