Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366854 - Juno M4 Prepare ChangeLog on hello world program creates 2 entries
Summary: Juno M4 Prepare ChangeLog on hello world program creates 2 entries
Status: CLOSED FIXED
Alias: None
Product: Linux Tools
Classification: Tools
Component: ChangeLog (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 0.9.2   Edit
Assignee: Jeff Johnston CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 371688 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-12-15 13:32 EST by Jeff Johnston CLA
Modified: 2012-02-15 17:48 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Johnston CLA 2011-12-15 13:32:47 EST
Editing a hello world C program and removing some other files in the project, then building causes a prepare ChangeLog action to create a ChangeLog with two entries with one being just the modified file and the other containing all the new and removed files.
Comment 1 Jeff Johnston CLA 2012-02-08 19:10:06 EST
It turns out the error occurs when the ChangeLog is empty to start with and there are modifications in addition to either removals or additions.  The modifications occur first and create a new entry.  An internal flag to force new entries isn't cleared and the 2nd and up entries end up in a new entry.

A fix has been checked into both master and stable-0.9 and a new test case has been added to the ChangeLog tests for both branches.
Comment 2 Jeff Johnston CLA 2012-02-15 17:48:46 EST
*** Bug 371688 has been marked as a duplicate of this bug. ***