Merge lp://staging/~abentley/bzr/find-proposal-branch into lp://staging/bzr
Status: | Rejected |
---|---|
Rejected by: | Aaron Bentley |
Proposed branch: | lp://staging/~abentley/bzr/find-proposal-branch |
Merge into: | lp://staging/bzr |
Diff against target: |
192 lines (+119/-10) 3 files modified
bzrlib/plugins/launchpad/__init__.py (+1/-0) bzrlib/plugins/launchpad/cmds.py (+28/-10) bzrlib/plugins/launchpad/test_cmds.py (+90/-0) |
To merge this branch: | bzr merge lp://staging/~abentley/bzr/find-proposal-branch |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jelmer Vernooij (community) | code | Approve | |
Review via email: mp+110615@code.staging.launchpad.net |
Commit message
Add BRANCH option to the lp-find-proposal command.
Description of the change
This branch adds an optional BRANCH argument to the lp-find-proposal command.
lp-find-proposal must search the branch that any proposals were targetted against; LP does not provide a mechanism that uses solely the revision-id. This means that often, the current branch is not a suitable place to look up proposals, so it makes sense to permit an override.
At the same time, this branch introduces testing for launchpad plugin commands, starting with lp-find-proposal. Until now, these commands have gone untested, because they use Launchpad. This meant that they didn't have a way to set up test objects, and they incurred network traffic. This approach uses a fake, in-memory version of the Launchpadlib API. Only necessary functionality is implemented.
Unmerged revisions
- 6530. By Aaron Bentley
-
Merged dev into find-proposal-
branch. - 6529. By Aaron Bentley
-
Update from review.
- 6528. By Aaron Bentley
-
Merged dev into find-proposal-
branch. - 6527. By Aaron Bentley
-
Cleanup.
- 6526. By Aaron Bentley
-
Support specifying branch for lp-find-proposal.
- 6525. By Aaron Bentley
-
Add tests of default behaviour.
Thanks, nice to have some extra testing.
There's an extra dot in """Specified branch is used.."""