Changeset 154022 in webkit


Ignore:
Timestamp:
Aug 13, 2013 2:12:21 PM (11 years ago)
Author:
dino@apple.com
Message:

<https://webkit.org/b/119766> Make bug url more human friendly in ChangeLog

Reviewed by Mark Rowe.

Have prepare-ChangeLog produce webkit.org/b/id style
URLs rather than exposing the inner workings of our
cgi. I was going to use the term "Future Proofing"
but that seems excessive :)

  • Scripts/prepare-ChangeLog:

(main): Generate a more human readable form.
(generateNewChangeLogs): Use it when printing out the ChangeLog entry.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r154001 r154022  
     12013-08-13  Dean Jackson  <dino@apple.com>
     2
     3        <https://webkit.org/b/119766> Make bug url more human friendly in ChangeLog
     4
     5        Reviewed by Mark Rowe.
     6
     7        Have prepare-ChangeLog produce webkit.org/b/id style
     8        URLs rather than exposing the inner workings of our
     9        cgi. I was going to use the term "Future Proofing"
     10        but that seems excessive :)
     11
     12        * Scripts/prepare-ChangeLog:
     13        (main): Generate a more human readable form.
     14        (generateNewChangeLogs): Use it when printing out the ChangeLog entry.
     15
    1162013-08-13  Raphael Kubo da Costa  <raphael.kubo.da.costa@intel.com>
    217
  • trunk/Tools/Scripts/prepare-ChangeLog

    r150939 r154022  
    2222#  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    2323#
    24 
    2524
    2625# Perl script to create a ChangeLog entry with names of files
     
    8079sub generateFileList(\%$$$);
    8180sub generateFunctionLists($$$$$);
    82 sub generateNewChangeLogs($$$$$$$$$$$);
     81sub generateNewChangeLogs($$$$$$$$$$$$);
    8382sub getLatestChangeLogs($);
    8483sub get_function_line_ranges($$);
     
    196195
    197196    my $bugURL;
     197    my $readableBugURL;
    198198    if ($bugNumber) {
    199199        $bugURL = "https://bugs.webkit.org/show_bug.cgi?id=$bugNumber";
     200        $readableBugURL = "https://webkit.org/b/$bugNumber";
    200201    }
    201202
     
    213214    }
    214215
    215     generateNewChangeLogs($prefixes, $filesInChangeLog, $addedRegressionTests, $functionLists, $bugURL, $bugDescription, $name, $emailAddress, $gitReviewer, $gitCommit, $writeChangeLogs);
     216    generateNewChangeLogs($prefixes, $filesInChangeLog, $addedRegressionTests, $functionLists, $bugURL, $readableBugURL, $bugDescription, $name, $emailAddress, $gitReviewer, $gitCommit, $writeChangeLogs);
    216217
    217218    if ($writeChangeLogs) {
     
    460461}
    461462
    462 sub generateNewChangeLogs($$$$$$$$$$$)
    463 {
    464     my ($prefixes, $filesInChangeLog, $addedRegressionTests, $functionLists, $bugURL, $bugDescription, $name, $emailAddress, $gitReviewer, $gitCommit, $writeChangeLogs) = @_;
     463sub generateNewChangeLogs($$$$$$$$$$$$)
     464{
     465    my ($prefixes, $filesInChangeLog, $addedRegressionTests, $functionLists, $bugURL, $readableBugURL, $bugDescription, $name, $emailAddress, $gitReviewer, $gitCommit, $writeChangeLogs) = @_;
    465466
    466467    # Generate new ChangeLog entries and (optionally) write out new ChangeLog files.
     
    496497        print CHANGE_LOG normalizeLineEndings($description . "\n", $endl) if $description;
    497498
    498         $bugDescription = "Need a short description (OOPS!).\n        Need the bug URL (OOPS!)." unless $bugDescription;
    499         print CHANGE_LOG normalizeLineEndings("        $bugDescription\n", $endl) if $bugDescription;
    500         print CHANGE_LOG normalizeLineEndings("        $bugURL\n", $endl) if $bugURL;
     499        $bugDescription = "Need a short description (OOPS!)" unless $bugDescription;
     500        $readableBugURL = "Need the bug URL (OOPS!)" unless $readableBugURL;
     501        print CHANGE_LOG normalizeLineEndings("        <$readableBugURL> $bugDescription\n", $endl);
    501502        print CHANGE_LOG normalizeLineEndings("\n", $endl);
    502503
Note: See TracChangeset for help on using the changeset viewer.