/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/plugins/propose/launchpad.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-01-26 16:16:24 UTC
  • mfrom: (7464.2.1 fix-land)
  • Revision ID: breezy.the.bot@gmail.com-20200126161624-r3hrs2xeaf5uz9zx
Fix finding Launchpad merge proposals by URL.

Merged from https://code.launchpad.net/~jelmer/brz/fix-land/+merge/378081

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
lazy_import(globals(), """
45
45
from breezy.plugins.launchpad import (
46
46
    lp_api,
 
47
    uris as lp_uris,
47
48
    )
48
49
 
49
50
from launchpadlib import uris
447
448
        (scheme, user, password, host, port, path) = urlutils.parse_url(
448
449
            url)
449
450
        LAUNCHPAD_CODE_DOMAINS = [
450
 
            ('code.%s' % domain) for domain in lp_api.LAUNCHPAD_DOMAINS.values()]
 
451
            ('code.%s' % domain) for domain in lp_uris.LAUNCHPAD_DOMAINS.values()]
451
452
        if host not in LAUNCHPAD_CODE_DOMAINS:
452
453
            raise UnsupportedHoster(url)
453
454
        # TODO(jelmer): Check if this is a launchpad URL. Otherwise, raise