Merge lp:~thumper/launchpad/xmlrpc-tests into lp:launchpad/db-devel
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 9758 | ||||
Proposed branch: | lp:~thumper/launchpad/xmlrpc-tests | ||||
Merge into: | lp:launchpad/db-devel | ||||
Diff against target: |
366 lines (+79/-145) 3 files modified
Makefile (+2/-2) lib/lp/code/xmlrpc/branch.py (+45/-15) lib/lp/code/xmlrpc/tests/test_branch.py (+32/-128) |
||||
To merge this branch: | bzr merge lp:~thumper/launchpad/xmlrpc-tests | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | release-critical | Approve | |
Launchpad code reviewers | Pending | ||
Review via email: mp+34719@code.launchpad.net |
Commit message
Correctly resolve lp path names to use the +branch alias.
Description of the change
This branch addresses issues found when QA testing the new lp:short-name for private branches.
When going through the XMLRPC resolve_lp_path tests, I seem to have forgotten the complete point of the change, which was to not look up the branch in most cases.
In order to return the http urls for branches accessed using lp:foo a branch lookup is still needed until the branch rewrite map can understand the aliases.
Many tests were removed as they are now pointless as the checking for the linked branch has been passed on to the code path that resolves the aliased name (an earlier branch).
tests:
TestExpandURL
The Makefile change was a drive-by that I needed in order to run some interactive testing. The hosted_branches make target calls a broken script right now, and that was out of scope for this change.