merging entries not from the head of the ChangeLog
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bzr-changelog-merge |
Fix Released
|
High
|
Andrew Bennetts |
Bug Description
Hi,
I've been using this plugin to merge some Emacs branches. It's been quite helpful. One issue that has come up:
People often like to edit older ChangeLog entries, eg to fix typos or fiddle with the line-breaks (sigh).
Often, they do this in the same commit as making a new ChangeLog entry.
If I use this plugin, it seems to cause ALL ChangeLog changes to get merged to the top of the destination.
Ideally, what would happen is:
Was the change in the source ChangeLog made at the head of the file?
(Or, was it an addition, as opposed to modification of an existing entry?)
If yes, merge the change to the head of the destination file.
If no, merge the change as normal.
An example is attached:
source.diff = change that was made to a ChangeLog file in the source branch. There is one new entry at the top, followed
by two cases of just changing the line-breaks.
plugin.diff = result of merging with the plugin. All entries get merged to the top (so two will be slightly altered duplicates
of existing entries).
no-plugin.diff = result of merging without the plugin
ideal.diff = what would ideally happen
Is there any chance of making it work this way?
Thanks.
Related branches
Changed in bzr-changelog-merge: | |
status: | Confirmed → In Progress |
Alternatively, perhaps bzr-changelog-merge could compare the two versions fuzzily, treating as different only those lines that are very different. I believe that's what git-merge-changelog does.