lp:~jameinel/bzr-builddeb/changelog-parser
- Get this branch:
- bzr branch lp:~jameinel/bzr-builddeb/changelog-parser
Branch merges
- Robert Collins (community): Approve
-
Diff: 609 lines (+271/-269)2 files modifiedmerge_changelog.py (+104/-222)
tests/test_merge_changelog.py (+167/-47)
Related bugs
Bug #516056: changelog merge hook should use python-debian for parsing | Undecided | Fix Released | |
Bug #516060: changelog merge hook should use a 3-way merge | Wishlist | Fix Released |
Related blueprints
Branch information
Recent revisions
- 407. By John A Meinel
-
Sort out some more details for the 3-way merge code.
The main problem I was running into was that the constructor always suppressed parse failures. - 404. By John A Meinel
-
Conflict when appropriate.
We could try to do a textual merge, but it is just easier to
conflict on the whole region. Mostly because merge3.Merge3 is missing
a decent api for telling whether there was a conflict region :(. - 403. By John A Meinel
-
Fix bug #516060, implement 3-way changelog merge.
This uses a fairly crude 3-way changelog merge algorithm, but doesn't yet
introduce conflicts. That will be next, as it requires an api bump.
If left != right, then we check if the version is in base, and if
one side is identical to base, then we pick the other.
This doesn't:
a) Conflict when left != right != base
b) Allow deleting entries (present in base & this but not other, for instance)
etc. - 401. By John A Meinel
-
Lots of simplification.
Use debian_
bundle. changelog to parse the changelog files and get versions, rather than
having a local implementation. Use a simple step-largest clustering of iterators to get
the output combined properly.This also showed that author lines are supposed to have a double blank space between
the author and the timestamp, so I fixed up those tests.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:bzr-builddeb