Comment 3 for bug 601551

Revision history for this message
Martin Packman (gz) wrote :

One workaround I suggested on irc was using authentication.conf to store username and password rather than entering on the terminal. Another option is to use a url in the form nosmart+http://... and use the --remember flag to keep that as the parent branch location.

The basic issue is that an http request first probes for bzr+http even for a normal http url. If the server doesn't support this, an exception is thrown and the connection and credentials are not recorded. Therefore when the plain request is attempted next, it prompts for a second time. I'm not sure if always preserving the connection and credentials regardless of response is correct, but that does seem to fix this bug.

A fun variation of this problem is trying `bzr branch bzr+http://...` from a smartless server, it prompts for credentials twice and always fails.