Merge lp:~mars/tarmac/fix-merge-error-updates-proposals into lp:~launchpad/tarmac/lp-tarmac
Proposed by
Māris Fogels
Status: | Merged |
---|---|
Approved by: | Māris Fogels |
Approved revision: | 394 |
Merged at revision: | 383 |
Proposed branch: | lp:~mars/tarmac/fix-merge-error-updates-proposals |
Merge into: | lp:~launchpad/tarmac/lp-tarmac |
Diff against target: |
285 lines (+166/-19) 4 files modified
tarmac/bin/commands.py (+18/-5) tarmac/branch.py (+14/-12) tarmac/tests/test_branch.py (+35/-0) tarmac/tests/test_commands.py (+99/-2) |
To merge this branch: | bzr merge lp:~mars/tarmac/fix-merge-error-updates-proposals |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Diogo Matsubara (community) | Approve | ||
Review via email: mp+43135@code.launchpad.net |
Commit message
Fix the handling of TarmacMergeErrors raised by plugins.
Description of the change
Hi,
This branch fixes the handling of TarmacMergeErrors raised by plugins. I fixed this by either updating all affected merge proposals manually, or by passing the proposal update responsibilites back to the Branch object. Tests are included for the hooks that should handle TarmacMergeErrors. I also did a bit of refactoring to support cleaner interaction between the Command and Branch objects.
All tests pass.
Maris
To post a comment you must log in.
Hi Mars,
I have a small comment about some commented out code on lines 39 and 40. It looks like you commented out the code but the intention was to remove it.
Another thing is that you define the MergeErrorInjector twice in test code. Is there a reason for that?
Other than that, it looks good. Thanks!