[Webkit-unassigned] [Bug 145082] New: prepare-ChangeLog reports function above deleted function as deleted; uninitialized value warning when staged non-empty file for commit

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 15 17:13:36 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=145082

            Bug ID: 145082
           Summary: prepare-ChangeLog reports function above deleted
                    function as deleted; uninitialized value warning when
                    staged non-empty file for commit
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dbates at webkit.org

Perl warns of the use of an uninitialized variable in prepare-ChangeLog when the working copy has a non-empty new file staged for commit:

Use of uninitialized value $first_line in pattern match (m//) at Tools/Scripts/prepare-ChangeLog line 644.

Without loss of generality, you can reproduce this issue by running the following terminal commands inside the top-level directory of a Git checkout of the WebKit repository:

$ echo 'A' > A.txt
$ git add A.txt 
$ Tools/Scripts/prepare-ChangeLog

Then you will see output of the form:

  Running status to find changed, added, or removed files.
  Reviewing diff to determine which lines changed.
  Extracting affected function names from source files.
fatal: Path 'A.txt' exists on disk, but not in 'HEAD'.
Use of uninitialized value $first_line in pattern match (m//) at Tools/Scripts/prepare-ChangeLog line 644.
  Change author: Daniel Bates <dabates at apple.com>.
  Editing the ./ChangeLog file.
-- Please remember to include a detailed description in your ChangeLog entry. --
-- See <http://webkit.org/coding/contributing.html> for more info --

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150516/c60a7f3e/attachment.html>


More information about the webkit-unassigned mailing list