我有麻烦让我的hgweb.cgi脚本成功地读取我的hgweb.config文件。 它失败与错误Abort: /var/www/hg/hgweb.config: not a Mercurial bundle file 。 下面的细节
/var/www/hg/hgweb.config
[collections] / = /home/danish/repos/hg/ [web] baseurl = /hg style = git-web
错误详情
Traceback (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
事实certificate。 我正在使用旧版本的Mercurial与最新的合并hgweb.cgi脚本。 在我的Ubuntu 10.04上安装Mercurial的标准版本有一个类似于4版本的版本。
一旦我升级了我的Mercurial,它开始工作。