Bug 143897

Summary: prepare-ChangeLog sometimes includes unmodified functions on purely subtractive hunks
Product: WebKit Reporter: Matthew Hanson <matthew_hanson>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: dburkart, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
prepare-ChangeLog should ignore the preceeding function when processing the removal of a function.
ddkilzer: review-
v2: prepare-ChangeLog should ignore the preceeding function when processing the removal of a function. ddkilzer: review+

Description Matthew Hanson 2015-04-17 14:12:08 PDT
When a Git combined diff hunk only includes one deletion, prepare-ChangeLog reports that the previous function/method has been modified.
Comment 1 Matthew Hanson 2015-04-17 14:14:27 PDT
Created attachment 251045 [details]
prepare-ChangeLog should ignore the preceeding function when processing the removal of a function.
Comment 2 Matthew Hanson 2015-04-17 14:16:02 PDT
rdar://problem/20043230
Comment 3 Radar WebKit Bug Importer 2015-04-17 14:16:52 PDT
<rdar://problem/20593033>
Comment 4 Matthew Hanson 2015-04-17 14:18:16 PDT
<rdar://problem/20043230>
Comment 5 David Kilzer (:ddkilzer) 2015-04-17 14:28:39 PDT
Comment on attachment 251045 [details]
prepare-ChangeLog should ignore the preceeding function when processing the removal of a function.

View in context: https://bugs.webkit.org/attachment.cgi?id=251045&action=review

r- for commented out code.

> Tools/Scripts/prepare-ChangeLog:291
> +                # if ($after_start >= 0 && $after_end >= 0 && $after_end >= $after_start) {

This shouldn't be commented out.  We don't check in commented out code.
Comment 6 Matthew Hanson 2015-04-17 14:33:00 PDT
Created attachment 251048 [details]
v2: prepare-ChangeLog should ignore the preceeding function when processing the removal of a function.
Comment 7 David Kilzer (:ddkilzer) 2015-04-17 14:45:49 PDT
Comment on attachment 251048 [details]
v2: prepare-ChangeLog should ignore the preceeding function when processing the removal of a function.

r=me.  If this causes any regressions, we should create some Perl unit tests before re-landing.
Comment 8 Matthew Hanson 2015-04-20 15:08:34 PDT
Committed https://trac.webkit.org/r183030.
Comment 9 Daniel Bates 2016-07-21 17:27:20 PDT
*** Bug 137889 has been marked as a duplicate of this bug. ***