hgwebdir not following symlinks

Johannes Totz jtotz at imperial.ac.uk
Thu Apr 15 12:03:29 CDT 2010


Hi,

I'm having trouble with hgwebdir and symlinks: when generating the index
page (with all the repos available) it doesn't list any symlinked repos.
Trying to access a symlinked repo directly via URL gets my an error
message. Might be related to nesting repos...

E.g.
1) https://server/hg/repo works
2) https://server/hg/symlinkedrepo works
3) https://server/hg/repo/symlinkedrepo does not (output is for repo
instead)
4) https://server/hg/repo/symlinkeddir/repo2 does not (title of page is
for repo, content says "An error occurred while processing your
request: 00manifest.i at repo2: no match found")
5) https://server/hg/repo/dir/symlinkedrepo does not (lists repos in
repo/dir/)
6) https://server/hg/repo/nestedrepo works


This is running Apache2 with hg version 1.5, and hgwebdir works fine
otherwise. Apache's FollowSymLinks option is on, and looking at the
code of walkrepos in util.py this should work (my Python skills are
pretty bad though).

Any ideas how to debug this?


Cheers!

Johannes



More information about the Mercurial mailing list