/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: Jelmer Vernooij
  • Date: 2020-07-28 00:32:38 UTC
  • mfrom: (7490.40.77 work)
  • mto: (7490.40.79 work)
  • mto: This revision was merged to the branch mainline in revision 7521.
  • Revision ID: jelmer@jelmer.uk-20200728003238-vx5u412hn72f18lr
Merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

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