Search code examples
bazaar

Force bazaar client protocol to use servers protocol 2?


I got ubuntu 12.04 with bazaar 2.5.1 and want to access a repository on a bazaar 1.5 server. The server understands only bazaars protocol version 2 ,but the client tries to connect with version 3. How can i force the client to use version 2 of the protocol?

error-message:

Server does not understand Bazaar network protocol 3, reconnecting.  (Upgrade the server to avoid this.)

It seems after several reconnects bazaar switches automatical to the lower version (as mentioned by bialix in his comment) but afterwards it just complains about the branch-format:

'error', "Unknown branch format: 'Bazaar Branch Format 7 (needs bzr 1.6)

So nothin really gained. Isn't there a way to tell the newer client to behave like an older?


Solution

  • The reository format might solve the problem. Try this :

    bzr init-repo --pack-0.92 myRepo
    bzr branch my1.5branch myRepo