Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350593 - ChangeLog does not consider a dirty ChangeLog editor as a change to the ChangeLog file and adds new ChangeLog entries to the editor
Summary: ChangeLog does not consider a dirty ChangeLog editor as a change to the Chang...
Status: RESOLVED 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.8.1   Edit
Assignee: Jeff Johnston CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-28 10:57 EDT by Ken Leung CLA
Modified: 2011-08-15 14:34 EDT (History)
3 users (show)

See Also:


Attachments
Adds dirty detection detection and pass it to GNUFormat (5.04 KB, patch)
2011-06-28 10:59 EDT, Ken Leung CLA
jjohnstn: iplog+
Details | Diff
Added a field, getter and setter so the boolean flag can be passed to GNUFormat to force it to merge a ChangeLog instead of creating new entries. (1.44 KB, patch)
2011-06-28 11:00 EDT, Ken Leung CLA
jjohnstn: iplog+
Details | Diff
Added dirty editor detection support by checking the boolean flag included by ChangeLogEditor. (1.86 KB, patch)
2011-06-28 11:01 EDT, Ken Leung CLA
jjohnstn: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Leung CLA 2011-06-28 10:57:49 EDT
Build Identifier: 

The current implementation only compares the ChangeLog file in the local repository with the master.  So if the user prepared a ChangeLog earlier in the day without saving the ChangeLog (the editor opening the ChangeLog is dirty), tries to make additional changes to files and prepare another ChangeLog, ChangeLog will create a new ChangeLog entry instead of merging/appending changes to the entry created by the last prepare.

Reproducible: Always

Steps to Reproduce:
1.Make changes to files.
2.Prepare ChangeLog.
3.On the same day, make additional changes to files.
4.On the same day, prepare ChangeLog again.
Comment 1 Ken Leung CLA 2011-06-28 10:59:48 EDT
Created attachment 198744 [details]
Adds dirty detection detection and pass it to GNUFormat
Comment 2 Ken Leung CLA 2011-06-28 11:00:53 EDT
Created attachment 198745 [details]
Added a field, getter and setter so the boolean flag can be passed to GNUFormat to force it to merge a ChangeLog instead of creating new entries.
Comment 3 Ken Leung CLA 2011-06-28 11:01:59 EDT
Created attachment 198746 [details]
Added dirty editor detection support by checking the boolean flag included by ChangeLogEditor.
Comment 4 Jeff Johnston CLA 2011-07-14 16:49:08 EDT
Patches committed to HEAD.
Comment 5 Andrew Overholt CLA 2011-08-15 14:34:30 EDT
Please cherry-pick fixes targetted at 0.8.1 to the stable-0.8 branch.  Thanks.