Merge lp:~jelmer/bzr/lp-qa-staging into lp:bzr
Proposed by
Jelmer Vernooij
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | John A Meinel | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 5617 | ||||
Proposed branch: | lp:~jelmer/bzr/lp-qa-staging | ||||
Merge into: | lp:bzr | ||||
Diff against target: |
111 lines (+31/-12) 5 files modified
bzrlib/plugins/launchpad/lp_api.py (+13/-10) bzrlib/plugins/launchpad/lp_registration.py (+1/-0) bzrlib/plugins/launchpad/test_lp_api.py (+1/-2) bzrlib/plugins/launchpad/test_lp_directory.py (+13/-0) doc/en/release-notes/bzr-2.4.txt (+3/-0) |
||||
To merge this branch: | bzr merge lp:~jelmer/bzr/lp-qa-staging | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John A Meinel | Approve | ||
Review via email: mp+46515@code.launchpad.net |
Commit message
Add support for qastaging in the launchpad plugin.
Description of the change
This adds support for lp://qastaging
To post a comment you must log in.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 1/17/2011 12:45 PM, Jelmer Vernooij wrote: /code.launchpad .net/~jelmer/ bzr/lp- qa-staging/ +merge/ 46515
> Jelmer Vernooij has proposed merging lp:~jelmer/bzr/lp-qa-staging into lp:bzr.
>
> Requested reviews:
> bzr-core (bzr-core)
>
> For more details, see:
> https:/
>
> This adds support for lp://qastaging
from launchpadlib.uris import LPNET_SERVICE_ROOT SERVICE_ ROOT = 'https:/ /api.launchpad. net/beta/ ' SERVICE_ ROOT SERVICE_ ROOT = 'https:/ /api.qastaging. launchpad. net/'
except ImportError:
LPNET_
+try:
+ from launchpadlib.uris import QASTAGING_
+except ImportError:
+ QASTAGING_
^- These sure look like things that should be done with getattr() rather
than import hacks. Can we change these to:
from launchpadlib import uris
QASTAGING_ SERVICE_ ROOT = getattr(uris, 'QASTAGING_ SERVICE_ ROOT', /api.qastaging. launchpad. net')
'https:/
etc.
launchpadlib may be doing import time hacks, but I doubt it.
The rest looks good to me. I would make sure you manually tested it, but
otherwise I'm happy.
merge: approve
John
=:->
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org/
11pAACgkQJdeBCY SNAANGrACfc/ oUxjzdgBvnVnKj8 Cs8VnIf r1h36raJcEdpaKa xUIjz87
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAk0
ZuoAoIIxa+
=thDm
-----END PGP SIGNATURE-----