我很难让我的hgweb.cgi脚本成功地读取hgweb.config文件。它在错误Abort: /var/www/hg/hgweb.config: not a Mercurial bundle file中失败。详情如下
[collections]
/ = /home/danish/repos/hg/
[web]
baseurl = /hg
style = git-webTraceback (most recent call last):
File "hgweb.cgi", line 17, in <module>
application = hgweb(config)
File "/usr/lib/pymodules/python2.6/mercurial/hgweb/__init__.py", line 12, in hgweb
return hgweb_mod.hgweb(*args, **kwargs)
File "/usr/lib/pymodules/python2.6/mercurial/hgweb/hgweb_mod.py", line 30, in __init__
self.repo = hg.repository(u, repo)
File "/usr/lib/pymodules/python2.6/mercurial/hg.py", line 63, in repository
repo = _lookup(path).instance(ui, path, create)
File "/usr/lib/pymodules/python2.6/mercurial/bundlerepo.py", line 303, in instance
return bundlerepository(ui, repopath, bundlename)
File "/usr/lib/pymodules/python2.6/mercurial/bundlerepo.py", line 175, in __init__
raise util.Abort(_("%s: not a Mercurial bundle file") % bundlename)
Abort: /var/www/hg/hgweb.config: not a Mercurial bundle file发布于 2011-03-17 13:06:04
事实证明。我使用的是最新合并的hgweb.cgi脚本的Mercurial的旧版本。在我的Ubuntu10.04上,Mercurial的标准安装附带了一个类似于4个版本的版本。
一旦我升级了我的变化无常,它就开始工作了。
https://serverfault.com/questions/247415
复制相似问题