首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >配置hgweb.cgi以提供汞存储库时的跟踪

配置hgweb.cgi以提供汞存储库时的跟踪
EN

Server Fault用户
提问于 2011-03-15 00:34:46
回答 1查看 918关注 0票数 1

我很难让我的hgweb.cgi脚本成功地读取hgweb.config文件。它在错误Abort: /var/www/hg/hgweb.config: not a Mercurial bundle file中失败。详情如下

/var/www/hg/hgweb.config

代码语言:javascript
复制
[collections]
/ = /home/danish/repos/hg/

[web]
baseurl = /hg
style = git-web

错误详细信息

代码语言:javascript
复制
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
EN

回答 1

Server Fault用户

回答已采纳

发布于 2011-03-17 13:06:04

事实证明。我使用的是最新合并的hgweb.cgi脚本的Mercurial的旧版本。在我的Ubuntu10.04上,Mercurial的标准安装附带了一个类似于4个版本的版本。

一旦我升级了我的变化无常,它就开始工作了。

票数 2
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/247415

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档