Merge lp:~jtv/launchpad/branch-url into lp:launchpad
Proposed by
Jeroen T. Vermeulen
on 2010-02-16
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Aaron Bentley on 2010-02-16 | ||||
| Approved revision: | not available | ||||
| Merged at revision: | not available | ||||
| Proposed branch: | lp:~jtv/launchpad/branch-url | ||||
| Merge into: | lp:launchpad | ||||
| Prerequisite: | lp:~jtv/launchpad/bug-507681 | ||||
| Diff against target: |
224 lines (+90/-15) 5 files modified
lib/lp/code/configure.zcml (+1/-0) lib/lp/code/interfaces/branch.py (+12/-1) lib/lp/code/model/branch.py (+28/-2) lib/lp/code/tests/test_branch.py (+47/-0) lib/lp/code/xmlrpc/branch.py (+2/-12) |
||||
| To merge this branch: | bzr merge lp:~jtv/launchpad/branch-url | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Aaron Bentley (community) | 2010-02-16 | Approve on 2010-02-16 | |
|
Review via email:
|
|||
Commit Message
Compose public URLs for branches.
To post a comment you must log in.
| Jeroen T. Vermeulen (jtv) wrote : | # |
review:
Approve

= IBranch. composePublicUR L =
It turns out to be useful to have a method to compose a public URL for a branch on a given protocol. For the Translations buildfarm work, as the driving use-case, it makes it easy for us to open up a single firewall hole for a slave to check out a read-only copy of a public branch.
Test:
{{{ icURL
./bin/test -vv -t TestComposePubl
}}}
There is a bunch of pre-existing lint in {{{lib/ lp/code/ interfaces/ branch. py}}} that's obviously caused by a confused checker. It complains about named parameters, thinking the "=" signs are assignments. I left those untouched, but eliminated all other lint (including a drive-by on a duplicate import).
Jeroen