~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/lp_api.py

  • Committer: Aaron Bentley
  • Date: 2012-07-19 22:15:57 UTC
  • mto: This revision was merged to the branch mainline in revision 6541.
  • Revision ID: aaron@aaronbentley.com-20120719221557-y2y1vqt9p92ya7uc
Look up merge proposals by exact revision-id.

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
        errors.BzrError.__init__(self, branch=branch, url=branch.base)
113
113
 
114
114
 
115
 
def login(service, timeout=None, proxy_info=None):
 
115
def login(service, timeout=None, proxy_info=None, version=None):
116
116
    """Log in to the Launchpad API.
117
117
 
118
118
    :return: The root `Launchpad` object from launchpadlib.
120
120
    cache_directory = get_cache_directory()
121
121
    launchpad = Launchpad.login_with(
122
122
        'bzr', _get_api_url(service), cache_directory, timeout=timeout,
123
 
        proxy_info=proxy_info)
 
123
        proxy_info=proxy_info, version=version)
124
124
    # XXX: Work-around a minor security bug in launchpadlib < 1.6.3, which
125
125
    # would create this directory with default umask.
126
126
    osutils.chmod_if_possible(cache_directory, 0700)