Comment 4 for bug 36004

Revision history for this message
James Henstridge (jamesh) wrote :

Here is another question related to this problem. Consider the following branches and repositories:

    http://server1/repo1 (bzr repository)
    http://server1/repo1/branch1 (bzr branch inside repo1)
    http://server2/repo2 (bzr repository)
    http://server2/repo2/branch2 (bzr branch inside repo2)

Now consider the following HTTP redirect:
    http://server1/repo1/branch2 => http://server2/repo2/branch2

If I branch or checkout http://server1/repo1/branch2, which repository should be used? The canonical location of the branch is certainly underneath repo2, but the URL used to retrieve the branch is underneath repo1.

One answer would be that files are looked up relative to the canonical location of some file (say .bzr/branch-format). I suppose this might also apply to the above situation on the local file system with symlinks.