Changeset 171966 in webkit


Ignore:
Timestamp:
Aug 2, 2014 10:34:34 AM (10 years ago)
Author:
mitz@apple.com
Message:

prepare-ChangeLog --no-write shouldn’t require ChangeLog to exist
https://bugs.webkit.org/show_bug.cgi?id=135542

Reviewed by Tim Horton.

  • Scripts/prepare-ChangeLog:

(main): Pass $writeChangeLogs for the new requireChangeLogToExist parameter of
findChangeLogs.
(findChangeLogs): Don’t require a ChangeLog file to exist if unless the
requireChangeLogToExist argument is true.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r171954 r171966  
     12014-08-02  Dan Bernstein  <mitz@apple.com>
     2
     3        prepare-ChangeLog --no-write shouldn’t require ChangeLog to exist
     4        https://bugs.webkit.org/show_bug.cgi?id=135542
     5
     6        Reviewed by Tim Horton.
     7
     8        * Scripts/prepare-ChangeLog:
     9        (main): Pass $writeChangeLogs for the new requireChangeLogToExist parameter of
     10        findChangeLogs.
     11        (findChangeLogs): Don’t require a ChangeLog file to exist if unless the
     12        requireChangeLogToExist argument is true.
     13
    1142014-08-01  Dan Bernstein  <mitz@apple.com>
    215
  • trunk/Tools/Scripts/prepare-ChangeLog

    r171954 r171966  
    7676sub extractLineRangeBeforeChange($);
    7777sub fetchBugDescriptionFromURL($$);
    78 sub findChangeLogs($);
     78sub findChangeLogs($$);
    7979sub findOriginalFileFromSvn($);
    8080sub generateFileList(\%$$$);
     
    217217    }
    218218
    219     my ($filesInChangeLog, $prefixes) = findChangeLogs($functionLists);
     219    my ($filesInChangeLog, $prefixes) = findChangeLogs($functionLists, $writeChangeLogs);
    220220
    221221    # Get the latest ChangeLog files from svn.
     
    437437}
    438438
    439 sub findChangeLogs($)
    440 {
    441     my ($functionLists) = @_;
     439sub findChangeLogs($$)
     440{
     441    my ($functionLists, $requireChangeLogToExist) = @_;
    442442
    443443    # Find the change logs.
     
    456456            last if $has_log;
    457457        }
    458         if (!$has_log) {
     458        if (!$has_log && $requireChangeLogToExist) {
    459459            print STDERR "No ChangeLog found for $file.\n";
    460460        } else {
Note: See TracChangeset for help on using the changeset viewer.