need help with hgwebdir and multiple repo

John Stean john at lane15.co.uk
Mon Nov 1 11:24:13 CDT 2010


Hello,

I want to publish multiple repositories on a Fedora box.

I have followed the instructions here: 
http://mercurial.selenic.com/wiki/RHEL4HgWebDirSetup

It all works fine for 1 repository, but cannot get the 2nd or nth to 
work, tried all different config options.

I have created two repos:

/home/scm/ hg init projecta
/home/scm/ hg init projectb

in the hgweb.config I have:

[paths]

projecta = /home/scm/projecta
projectb = /home/scm/projectb
(i have also tried the /home/scm/* to no avail)

url / just lists projecta
url /projecta shows the projecta repo
url /projectb gives an internal server error

If I reverse the order or projecta and b in the [paths] section, 
projectb works and projecta throws the error.

Here is the error:

  [error]  Traceback (most recent call last):
  [error]    File "/var/www/cgi-hg/hgwebdir.cgi", line 67, in <module>
  [error]
  [error]  wsgicgi.launch(application)
  [error]    File 
"/usr/lib/python2.5/site-packages/mercurial/hgweb/wsgicgi.py", line 69, 
in launch
  [error]
  [error]  for chunk in content:
  [error]    File "/usr/lib/python2.5/site-packages/mercurial/util.py", 
line 319, in increasingchunks
  [error]
  [error]  for chunk in source:
  [error]    File 
"/usr/lib/python2.5/site-packages/mercurial/templater.py", line 148, in 
expand
  [error]
  [error]  item = iters[0].next()
  [error]    File 
"/usr/lib/python2.5/site-packages/mercurial/templater.py", line 122, in 
_process
  [error]
  [error]  % (key, format))
  [error]  SyntaxError
  [error]  :
  [error]  Error expanding 'sessionvars%urlparameter'
  [error]
  [error]  Premature end of script headers: hgwebdir.cgi


I have disabled selinux to no effect.

Can anyone offer a suggestion?

thanks






More information about the Mercurial mailing list