Changeset 252991 in webkit


Ignore:
Timestamp:
Dec 2, 2019 10:32:49 AM (4 years ago)
Author:
dbates@webkit.org
Message:

REGRESSION (r195080): prepare-ChangeLog does not emit function list for file paths that contain a space
https://bugs.webkit.org/show_bug.cgi?id=204236

Reviewed by Brian Burg.

Revert the filename escape logic added in <http://trac.webkit.org/changeset/195080> as it broke
function list generation in file paths that contain space characters. Function list generation
broke because the escaping was performed after line range dictionaries were built up keyed off
the unescaped file path. Subsequent code would try to query these dictionaries to build up the
changed function list using the escaped file path and never a match. The escaping logic was not
necessary to fix the originally reported bug. All that was needed was to use the three-argument
open() call that took a mode. So, remove the escape logic.

  • Scripts/prepare-ChangeLog:

(actuallyGenerateFunctionLists):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r252964 r252991  
     12019-12-02  Daniel Bates  <dabates@apple.com>
     2
     3        REGRESSION (r195080): prepare-ChangeLog does not emit function list for file paths that contain a space
     4        https://bugs.webkit.org/show_bug.cgi?id=204236
     5
     6        Reviewed by Brian Burg.
     7
     8        Revert the filename escape logic added in <http://trac.webkit.org/changeset/195080> as it broke
     9        function list generation in file paths that contain space characters. Function list generation
     10        broke because the escaping was performed after line range dictionaries were built up keyed off
     11        the unescaped file path. Subsequent code would try to query these dictionaries to build up the
     12        changed function list using the escaped file path and never a match. The escaping logic was not
     13        necessary to fix the originally reported bug. All that was needed was to use the three-argument
     14        open() call that took a mode. So, remove the escape logic.
     15
     16        * Scripts/prepare-ChangeLog:
     17        (actuallyGenerateFunctionLists):
     18
    1192019-11-30  Ross Kirsling  <ross.kirsling@sony.com>
    220
  • trunk/Tools/Scripts/prepare-ChangeLog

    r251476 r252991  
    346346    my %filesToExamine = map { $_ => 1 } (keys(%line_ranges_before_changed), keys(%line_ranges_after_changed));
    347347    foreach my $file (keys %filesToExamine) {
    348         # Escape whitespace in filenames rather than adding quotes, since many functions can open files
    349         # and other code doesn't expect to see a trailing " character when sniffing a file extension.
    350         chomp $file;
    351         $file =~ s/ /\\ /g;
    352 
    353348        my %saw_function;
    354349
Note: See TracChangeset for help on using the changeset viewer.