~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/remote.py

  • Committer: Andrew Bennetts
  • Date: 2007-04-27 03:01:44 UTC
  • mto: This revision was merged to the branch mainline in revision 2468.
  • Revision ID: andrew.bennetts@canonical.com-20070427030144-vz2vna1t31ymdgz9
Fix incompatibility with < 0.16 smart servers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
            return True
124
124
        elif resp == ('no', ):
125
125
            return False
 
126
        elif resp == ('error', "Generic bzr smart protocol error: "
 
127
                               "bad request 'Transport.is_readonly'"):
 
128
            # XXX: nasty hack: pre 0.16 servers don't have a
 
129
            # 'Transport.is_readonly' verb, so we do what pre 0.16 clients did:
 
130
            # assume False.
 
131
            return False
126
132
        else:
127
133
            self._translate_error(resp)
128
134
        assert False, 'weird response %r' % (resp,)