Merge lp:~abentley/launchpad/mp-by-revision-id into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | j.c.sackett on 2012-07-12 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 15624 | ||||
| Proposed branch: | lp:~abentley/launchpad/mp-by-revision-id | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
278 lines (+134/-7) 6 files modified
lib/lp/_schema_circular_imports.py (+7/-1) lib/lp/code/interfaces/branch.py (+14/-0) lib/lp/code/model/branch.py (+5/-0) lib/lp/code/model/branchcollection.py (+16/-4) lib/lp/code/model/tests/test_branch.py (+84/-0) lib/lp/testing/factory.py (+8/-2) |
||||
| To merge this branch: | bzr merge lp:~abentley/launchpad/mp-by-revision-id | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| j.c.sackett (community) | 2012-07-12 | Approve on 2012-07-12 | |
|
Review via email:
|
|||
Commit Message
Find merge proposals by revision-id.
Description of the Change
= Summary =
Fix bug #1020961: API cannot find merge proposal without branch
== Proposed fix ==
Add merged_revision parameter to GenericBranchCo
== Pre-implementation notes ==
None
== LOC Rationale ==
I have a LOC credit of 1983
== Implementation details ==
This approach uses BranchRevision to find the association between a revision_id and a merge proposal. Another option would be a schema change to associate the merge proposal with a Revision.id or revision-id directly, but I don't belive that this API has enough traffic to warrant that.
== Tests ==
bin/test -vt TestGetMergePro
== Demo and Q/A ==
Using launchpadlib (potentially via lp-shell), use getMergeProposals with revision-id '<email address hidden>'. The sole result should be https:/
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/

Looks good. Thanks, Aaron.