hgwebdir.cgi fails to get repos sub directories

Sebastian Hauer sebastian.hauer at gmail.com
Thu Oct 4 12:50:17 CDT 2007


Hi,
I just set up apache to serve out our repositories via hgwebdir.cgi.
I have the repos grouped into different category sub directories.
E.g.

cat1/someproj
cat1/someotherproj
cat2/yetanotherproj

When I go to the top level URL http://reposerver/hg I get all projects
shows as listed above similar to: http://hg.kublai.com/

But when I try to see only one sub directories repos I get an error
but I see at http://hg.kublai.com/fink that it works just fine.

The part of the error I am getting is listed below (sorry the error
stack trace is quite long):

-----------------------
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
 /home/shauer/hg/hgwebdir.cgi in ()
   44
   45 def make_web_app():
   46     return hgwebdir("hgweb.config")
   47
   48 wsgicgi.launch(wsgiapplication(make_web_app))
wsgicgi = <proxied module 'wsgicgi'>, wsgicgi.launch = <function
launch at 0x3037b0>, wsgiapplication = <class
'mercurial.hgweb.request.wsgiapplication'>, make_web_app = <function
make_web_app at 0x303770>
 /home/shauer/lib/python/mercurial/hgweb/wsgicgi.py in
launch(application=<mercurial.hgweb.request.wsgiapplication object at
0x3056b0>)

 /home/shauer/lib/python/mercurial/hgweb/request.py in
__call__(self=<mercurial.hgweb.request.wsgiapplication object at
0x3056b0>, wsgienv={'DOCUMENT_ROOT':
'/home/shauer/sys/apache-2.2.6/htdocs', 'GATEWAY_INTERFACE':
'CGI/1.1', 'HGENCODING': 'UTF-8', 'HTTP_ACCEPT':
'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE':
'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_HOST':
'quantsim:7777', 'HTTP_KEEP_ALIVE': '300', ...},
start_response=<function start_response at 0x3038f0>)

 /home/shauer/lib/python/mercurial/hgweb/request.py in
__init__(self=<mercurial.hgweb.request._wsgirequest object at
0x305830>, destination=<mercurial.hgweb.hgwebdir_mod.hgwebdir object
at 0x3056f0>, wsgienv={'DOCUMENT_ROOT':
'/home/shauer/sys/apache-2.2.6/htdocs', 'GATEWAY_INTERFACE':
'CGI/1.1', 'HGENCODING': 'UTF-8', 'HTTP_ACCEPT':
'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE':
'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_HOST':
'quantsim:7777', 'HTTP_KEEP_ALIVE': '300', ...},
start_response=<function start_response at 0x3038f0>)

 /home/shauer/lib/python/mercurial/hgweb/hgwebdir_mod.py in
run_wsgi(self=<mercurial.hgweb.hgwebdir_mod.hgwebdir object at
0x3056f0>, req=<mercurial.hgweb.request._wsgirequest object at
0x305830>)

 /home/shauer/lib/python/mercurial/hgweb/request.py in
write(self=<mercurial.hgweb.request._wsgirequest object at 0x305830>,
*things=(<generator object at 0x406490>,))

 /home/shauer/lib/python/mercurial/templater.py in
__call__(self=<mercurial.templater.templater object at 0x2fcab0>,
t='notfound', **map={'repo': 'hft'})

<type 'exceptions.KeyError'>: 'notfound'
------------------------

Thanks for your help in advance,
Sebastian


More information about the Mercurial mailing list