/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: 2019-03-02 21:51:19 UTC
  • mfrom: (7268.12.3 probe-url)
  • Revision ID: breezy.the.bot@gmail.com-20190302215119-7lhcqje0t7xvkbfj
Split out a 'probe_from_url' method on Hoster.

Merged from https://code.launchpad.net/~jelmer/brz/probe-url/+merge/362951

Show diffs side-by-side

added added

removed removed

Lines of Context:
174
174
        return plausible_launchpad_url(branch.user_url)
175
175
 
176
176
    @classmethod
177
 
    def probe(cls, branch):
178
 
        if plausible_launchpad_url(branch.user_url):
 
177
    def probe_from_url(cls, url):
 
178
        if plausible_launchpad_url(url):
179
179
            return Launchpad()
180
 
        raise UnsupportedHoster(branch)
 
180
        raise UnsupportedHoster(url)
181
181
 
182
182
    def _get_lp_git_ref_from_branch(self, branch):
183
183
        url, params = urlutils.split_segment_parameters(branch.user_url)