/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/git/__init__.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-07-20 02:17:05 UTC
  • mfrom: (7518.1.2 merge-3.1)
  • Revision ID: breezy.the.bot@gmail.com-20200720021705-5f11tmo1hdqjxm6x
Merge lp:brz/3.1.

Merged from https://code.launchpad.net/~jelmer/brz/merge-3.1/+merge/387628

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
        resp = transport.request('GET', url, headers=headers)
185
185
        if resp.status in (404, 405):
186
186
            raise brz_errors.NotBranchError(transport.base)
 
187
        elif resp.status == 400 and resp.reason == 'no such method: info':
 
188
            # hgweb :(
 
189
            raise brz_errors.NotBranchError(transport.base)
187
190
        elif resp.status != 200:
188
 
            raise brz_errors.InvalidHttpResponse(
189
 
                url, 'Unable to handle http code %d' % resp.status)
 
191
            raise brz_errors.UnexpectedHttpStatus(url, resp.status)
190
192
 
191
193
        ct = resp.getheader("Content-Type")
192
194
        if ct and ct.startswith("application/x-git"):