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

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-08-23 01:15:41 UTC
  • mfrom: (7520.1.4 merge-3.1)
  • Revision ID: breezy.the.bot@gmail.com-20200823011541-nv0oh7nzaganx2qy
Merge lp:brz/3.1.

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
class MercurialUnsupportedError(errors.UnsupportedFormatError):
31
31
 
32
32
    _fmt = ('Mercurial branches are not yet supported. '
33
 
            'To convert Mercurial branches to Bazaar branches or vice versa, '
34
 
            'use the fastimport format. ')
 
33
            'To interoperate with Mercurial, use the fastimport format.')
35
34
 
36
35
 
37
36
class LocalHgDirFormat(controldir.ControlDirFormat):
145
144
            'GET', url, headers={'Accept': 'application/mercurial-0.1'})
146
145
        if resp.status == 404:
147
146
            return False
 
147
        if resp.status == 406:
 
148
            # The server told us that it can't handle our Accept header.
 
149
            return False
148
150
        ct = resp.getheader("Content-Type")
149
151
        if ct is None:
150
152
            return False