Sharing repository through a read-only web server
Aaron Bentley
aaron.bentley at utoronto.ca
Mon Nov 12 16:16:37 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ben Gerdemann wrote:
> Aaron Bentley <aaron.bentley <at> utoronto.ca> writes:
>
>>
>> Ben Gerdemann wrote:
>>
>>> The problem is that when I try to checkout
>>> the repository through the http server, bzr is looking for files that don't
>>> exist.
>>> bzr: ERROR: Transport error: Server refuses to fullfil the request for:
>>> http://myserver/bzr-repo/home/.bzr/repository/format
>> A repository with no format file is severely malformed. I would
>> encourage you to check and double-check that repository/format is really
>> not there, because I would expect Bazaar to always give an error about
>> such a repository, whether locally or remotely.
>>
>> It seems far more plausible that the file is present, but a server
>> configuration problem prevents it from being retrieved via http.
>
> The format file is in http://myserver/bzr-repo/.bzr/repository/format but bzr is
> looking for it in http://myserver/bzr-repo/home/.bzr/repository/format
This is because you are trying to checkout from
http://myserver/bzr-repo/home.
When bzr opens a branch, it looks for the repository in the branch
directory, then the parent directory, and so on until it finds the
repository or reaches the top of the filesystem.
So it should do
http get /bzr-repo/home/.bzr/repository/format => 404
http get /bzr/repo/.bzr/repository/format => 200
The problem in this case is that your server isn't telling Bazaar that
http://myserver/bzr-repo/home/.bzr/repository/format doesn't exist.
Instead it is refusing to say whether it exists.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHOHxl0F+nu1YWqI0RAkSrAJ91toy4a7tRgj93aPhhSsFqlHOXCgCeN4pt
UcV+ciQ8ltdU3if+08/iVkw=
=uW7a
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list