~ursinha/lp-qa-tools/bzr-tarmacland

« back to all changes in this revision

Viewing changes to lpland.py

  • Committer: Jelmer Vernooij
  • Date: 2010-08-16 10:32:06 UTC
  • mfrom: (71.1.1 remove-bazaar-host)
  • Revision ID: jelmer@samba.org-20100816103206-h6zk1nmnsvon5rjw
[r=mbp] Remove obsolete get_bazaar_host() function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
367
367
        rc_clause = ''
368
368
    return '%s[r=%s][ui=%s]' % (
369
369
        rc_clause, _comma_separated_names(code_reviewers), ui_clause)
370
 
 
371
 
 
372
 
def get_bazaar_host(api_root):
373
 
    """Get the Bazaar service for the given API root."""
374
 
    # XXX: JonathanLange 2009-09-24 bug=435803: This is only needed because
375
 
    # Launchpad doesn't expose the push URL for branches.
376
 
    if api_root == EDGE_SERVICE_ROOT:
377
 
        return 'bazaar.launchpad.net'
378
 
    elif api_root == DEV_SERVICE_ROOT:
379
 
        return 'bazaar.launchpad.dev'
380
 
    elif api_root == STAGING_SERVICE_ROOT:
381
 
        return 'bazaar.staging.launchpad.net'
382
 
    elif api_root == LPNET_SERVICE_ROOT:
383
 
        return 'bazaar.launchpad.net'
384
 
    else:
385
 
        raise ValueError(
386
 
            'Cannot determine Bazaar host. "%s" not a recognized Launchpad '
387
 
            'API root.' % (api_root,))