Changeset 55780 in webkit


Ignore:
Timestamp:
Mar 10, 2010 7:47:30 AM (14 years ago)
Author:
Adam Roben
Message:

Make svn-create-patch and prepare-ChangeLog show better section headings for ObjC files

This makes the text at the end of each "@@" line in a diff actually
show the ObjC method or interface that contains the change, rather
than whatever the most-recently-defined C function was.

Fixes <http://webkit.org/b/35970>.

Reviewed by John Sullivan.

  • Scripts/svn-create-patch: Pass -F'[-+@]' to diff so that it will

treat any lines starting with -, +, or @ as section heading lines.
This works well for ObjC files, and shouldn't affect other types of
files.

  • Scripts/prepare-ChangeLog: Changed the options passed to diff to

match those used in svn-create-patch.

Location:
trunk/WebKitTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r55775 r55780  
     12010-03-10  Adam Roben  <aroben@apple.com>
     2
     3        Make svn-create-patch and prepare-ChangeLog show better section
     4        headings for ObjC files
     5
     6        This makes the text at the end of each "@@" line in a diff actually
     7        show the ObjC method or interface that contains the change, rather
     8        than whatever the most-recently-defined C function was.
     9
     10        Fixes <http://webkit.org/b/35970>.
     11
     12        Reviewed by John Sullivan.
     13
     14        * Scripts/svn-create-patch: Pass -F'^[-+@]' to diff so that it will
     15        treat any lines starting with -, +, or @ as section heading lines.
     16        This works well for ObjC files, and shouldn't affect other types of
     17        files.
     18
     19        * Scripts/prepare-ChangeLog: Changed the options passed to diff to
     20        match those used in svn-create-patch.
     21
    1222010-03-10  Simon Hausmann  <simon.hausmann@nokia.com>
    223
  • trunk/WebKitTools/Scripts/prepare-ChangeLog

    r54076 r55780  
    12281228    my $command;
    12291229    if ($isSVN) {
    1230         $command = "$SVN diff --diff-cmd diff -x -N $pathsString";
     1230        $command = "$SVN diff --diff-cmd diff -x -uaNpF'^[-+@]' $pathsString";
    12311231    } elsif ($isGit) {
    12321232        $command = "$GIT diff --no-ext-diff -U0 " . diffFromToString();
  • trunk/WebKitTools/Scripts/svn-create-patch

    r50136 r55780  
    204204        manufacturePatchForAdditionWithHistory($fileData);
    205205    }
    206     open DIFF, "svn diff --diff-cmd diff -x -uaNp '$file' |" or die;
     206    open DIFF, "svn diff --diff-cmd diff -x -uaNpF'^[-+@]' '$file' |" or die;
    207207    while (<DIFF>) {
    208208        $patch .= $_;
Note: See TracChangeset for help on using the changeset viewer.