问题描述
我在这里 http://repos.joomlaguruteam.com/
我使用hgweb.cgi这是我的hgweb.config文件
I using hgweb.cgithis is my hgweb.config file
[web]
baseurl =
#allowpull = true
allow_push = *
push_ssl = false
allow_archive = bz2 gz zip
[paths]
/ = /home/repos/*
我可以浏览它,但不能克隆它.每当我克隆它时,我都会遇到这个错误
I can browse it but I can't clone it. Every time I clone it I have this error
hg clone http://repos.joomlaguruteam.com/hello
destination directory: hello
requesting all changes
abort: HTTP Error 404: Not Found
和访问日志中有
115.5.95.59 - - [10/Feb/2011:04:20:33 -0600] "GET /hello?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" 200 1 "-" "mercurial/proto-1.0"
115.5.95.59 - - [10/Feb/2011:04:20:34 -0600] "GET /hello?cmd=heads HTTP/1.1" 200 41 "-" "mercurial/proto-1.0"
115.5.95.59 - - [10/Feb/2011:04:20:34 -0600] "GET /hello?cmd=changegroup&roots=0000000000000000000000000000000000000000 HTTP/1.1" 404 597 "-" "mercurial/proto-1.0"
但是我可以使用未压缩的传输来克隆它
But I can clone it using uncompressed transfer
hg clone --uncompressed http://repos.joomlaguruteam.com/hello
但是现在我不知道如何从存储库中提取,因为当我从存储库中提取时.它具有与克隆相同的问题.也用于传入.
But now I don't know how to pull the from the repository, because when I pull from it.it have the same problem like clone. also for incoming.
这是我的.htaccess文件
Here is my .htaccess file
Options +ExecCGI
RewriteEngine On
#write base depending on where the base url lives
#RewriteBase /hg
RewriteRule ^$ hgweb.cgi [L]
# Send requests for files that exist to those files.
RewriteCond %{REQUEST_FILENAME} !-f
# Send requests for directories that exist to those directories.
RewriteCond %{REQUEST_FILENAME} !-d
# Send requests to hgweb.cgi, appending the rest of url.
RewriteRule (.*) hgweb.cgi/$1 [QSA,L]
我可以将修订版推送到存储库,但不能退出.
I can push revison to the repository but can't pull from it.
无论如何,有没有配置它或使它工作的方法.
Is there anyway to configure this or something to make it work.
非常感谢您的帮助.
谢谢,元
推荐答案
好,我发现了问题所在.
OK I have found out the problem.
在/home/my_username/.hgrc中注释以下行
comment out the following line in /home/my_username/.hgrc
#verbose = True
更多详细信息此处
这篇关于克隆,提取商品资料库时收到404错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!