Merge lp:~rom1-chal/bzr-builder/reporting_conflict_from_merge into lp:bzr-builder
Status: | Work in progress |
---|---|
Proposed branch: | lp:~rom1-chal/bzr-builder/reporting_conflict_from_merge |
Merge into: | lp:bzr-builder |
Diff against target: |
125 lines (+69/-5) 2 files modified
recipe.py (+64/-2) tests/test_recipe.py (+5/-3) |
To merge this branch: | bzr merge lp:~rom1-chal/bzr-builder/reporting_conflict_from_merge |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jelmer Vernooij (community) | code | Needs Fixing | |
James Westby | Pending | ||
Review via email: mp+30127@code.launchpad.net |
Description of the change
Hi,
I am release manager for a company with many developers.
I massively use recipes to manage my integration plans of feature branches.
My concern is about reporting on merges producing conflicts.
As a release mgr, I have to know :
- which feature branch has introduced the conflict
- and who are the developers that are concerned by the conflicted modifications
To do so, i have written the ConflictsFromMerge exception which can be raised by merge_branch (instead of BzrCommandError).
The exception gets in parameter the ChildBranch.url which has stopped the build.
To detect the developers, I parse conflicted parts on the annotated conflicted files.
Very useful for my integration team and myself.
The tests "test_build_
Rgds/Romain
Unmerged revisions
- 99. By Romain Chalumeau
-
Tests updates
Take into account the new exceptions raised ConflictsDetected and ConflictsFromMerge
in tests :
test_build_tree_merged_ with_conflicts
test_pull_or_branch_ pull_with_ conflicts - 98. By Romain Chalumeau
-
ConflictsDetected exception
- 97. By Romain Chalumeau
-
ConflictFromMerge exception
When a merge directive produces conflicts, a conflictFromMerge exception is raised.
The msg of the exception gives a complete report to ease the integrator solving the conflict ie :
- branch url which causes the conflict
- files in conflict
- authors who have committed the conflicted modifications
- path where to handle the conflicts
Hi,
Thanks for this, it looks great.
I have a few formatting things that I would like to clean up when I merge,
but they are minor.
The thing that is stopping me doing it right now is that I'm not sure how
generally applicable the output is. I'm trying to think of things that would
both be widely useful, and still give you the information that you need.
Perhaps not showing the developers, but the revisions (like you would get from
bzr log) for each revision involved in the conflict would work?
I'm going to ponder this over the weekend, and we can get it landed next week.
Thanks,
James