Comment 3 for bug 397046

Revision history for this message
John A Meinel (jameinel) wrote :

Eugene, I think you just don't have a server that tells you about the redirection.

The specific cause is because we first check if the mentioned path is a bundle to be merged, rather than a branch. And we do that after stripping the trailing slash. (So we check if "http://bazaar-vcs.org/bzr/bzr.dev" is a bundle, and then try http://bazaar-vcs.org/bzr/bzr.dev/.bzr/branch-format to see if it is a branch.)

Part of the problem is that the layering means that even if the user supplies "http://bazaar-vcs.org/bzr/bzr.dev/" we still remove that trailing slash and check anyway. So step 1 is to not do that.

Step 2 is that it will still fail on Launchpad code hosting, because "http://bazaar.launchpad.net/~user/project/branch/" is always redirected to "http://bazaar.launchpad.net/~user/project/branch/changes" so that when you access a branch via HTTP you end up seeing the loggerhead view.

Note that if bzr just didn't tell the user about the redirection, I don't think that anyone would notice or really care about the problem.