/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/propose.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-06-15 14:25:08 UTC
  • mfrom: (7296.10.9 custom-gitlab)
  • Revision ID: breezy.the.bot@gmail.com-20190615142508-8urao0ot666rye66
Don't depend on the gitlab library for gitlab operations.

Instead, just use Breezy's built-in HTTP support.

Merged from https://code.launchpad.net/~jelmer/brz/custom-gitlab/+merge/367620

Show diffs side-by-side

added added

removed removed

Lines of Context:
255
255
    def probe_from_branch(cls, branch):
256
256
        """Create a Hoster object if this hoster knows about a branch."""
257
257
        url = urlutils.split_segment_parameters(branch.user_url)[0]
258
 
        return cls.probe_from_url(url)
 
258
        return cls.probe_from_url(
 
259
            url, possible_transports=[branch.control_transport])
259
260
 
260
261
    @classmethod
261
 
    def probe_from_url(cls, url):
 
262
    def probe_from_url(cls, url, possible_hosters=None):
262
263
        """Create a Hoster object if this hoster knows about a URL."""
263
264
        raise NotImplementedError(cls.probe_from_url)
264
265