Exception in mercurial\hgweb\hgweb_mod.py

Christian Kollee christian at kollee.de
Thu Jul 16 10:55:41 CDT 2009


Hi,

I just tried to run 'hg serve' on Mac OS X (10.4.11, mercurial 1.3 with
python 2.6 from macports)and Windows (XP with latest patches, TortoiseHG
0.8). In both cases I got an exception during processing of the request
in mercurial\hgweb\hgweb_mod.py.

What I did:
1. Start 'hg serve' in any repository.
2. Try to clone the default repository from any machine via 'hg clone
http://machineX:8000/repo/default'. If I use the server root everything
is fine.
3. Got error message on client, exception on server:
----------------------------------------
[stack trace]
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial/hgweb/hgweb_mod.py",
line 111, in run_wsgi
    raise ErrorResponse(HTTP_NOT_FOUND)
ErrorResponse
----------------------------------------

I'm new to mercurial, so please tell me if this approach (especially
step 2) is correct.

The "if"-statement in line 110 of mercurial\hgweb\hgweb_mod.py evaluates
to true if the request has a non-empty path. Therefore, in step 2 the
string "query" is "repo/default" and raises the exception. Is this the
correct behaviour?

Best regards,
Christian



More information about the Mercurial mailing list