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

« back to all changes in this revision

Viewing changes to lpland.py

  • Committer: James Westby
  • Date: 2010-04-07 09:48:47 UTC
  • mfrom: (65.1.2 bzr-pqm-trunk)
  • Revision ID: james.westby@canonical.com-20100407094847-23g0sltjg2bwacik
Use the Launchpad method to get the push URL.

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
        :param branch: A launchpadlib `IBranch`.
170
170
        """
171
171
        # XXX: JonathanLange 2009-09-24: No unit tests.
172
 
        host = get_bazaar_host(str(self._launchpad._root_uri))
173
 
        # XXX: JonathanLange 2009-09-24 bug=435790: lazr.uri allows a path
174
 
        # without a leading '/' and then doesn't insert a '/' in the final
175
 
        # URL. Do it ourselves.
176
 
        return URI(scheme='bzr+ssh', host=host, path='/' + branch.unique_name)
 
172
        return branch.composePublicURL(scheme="bzr+ssh")
177
173
 
178
174
    def get_commit_message(self, commit_text, testfix=False):
179
175
        """Get the Launchpad-style commit message for a merge proposal."""