Merge lp:~abentley/launchpad/branch-url into lp:launchpad
Proposed by
Aaron Bentley
on 2010-02-16
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Michael Hudson-Doyle on 2010-02-17 | ||||
| Approved revision: | not available | ||||
| Merged at revision: | not available | ||||
| Proposed branch: | lp:~abentley/launchpad/branch-url | ||||
| Merge into: | lp:launchpad | ||||
| Prerequisite: | lp:~jtv/launchpad/branch-url | ||||
| Diff against target: |
108 lines (+20/-26) 2 files modified
lib/lp/code/model/branch.py (+18/-14) lib/lp/code/xmlrpc/branch.py (+2/-12) |
||||
| To merge this branch: | bzr merge lp:~abentley/launchpad/branch-url | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Michael Hudson-Doyle | Approve on 2010-02-17 | ||
| Jeroen T. Vermeulen | 2010-02-16 | Pending | |
|
Review via email:
|
|||
To post a comment you must log in.
| Aaron Bentley (abentley) wrote : | # |

This branch refactors code.model. branch. Branch. composePublicUr l and code.xmlrpc. branch. PublicCodehosti ngAPI to use common code for generating branch URLs.
Because the latter generates URLs using a unique name if no branch exists, I extracted most of Branch. composePublicUr l into a function, compose_public_url, that takes unique_name as a parameter.
There are no new tests, but the code passes existing tests for composePublicUrl and PublicCodehosti ngAPI.