/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: Jelmer Vernooij
  • Date: 2020-08-10 15:00:17 UTC
  • mfrom: (7490.40.99 work)
  • mto: This revision was merged to the branch mainline in revision 7521.
  • Revision ID: jelmer@jelmer.uk-20200810150017-vs7xnrd1vat4iktg
Merge lp:brz/3.1.

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