克隆时获取404错误,拉出mercurial存储库

Yua*_*hen 5 mercurial clone apache-config hgrc

我在这里有一个存储库http://repos.joomlaguruteam.com/

我使用hgweb.cgi这是我的hgweb.config文件

[web]
baseurl = 
#allowpull = true
allow_push = *
push_ssl = false
allow_archive = bz2 gz zip

[paths]
/ = /home/repos/*
Run Code Online (Sandbox Code Playgroud)

我可以浏览它,但我无法克隆它.我每次克隆它都有这个错误

hg clone http://repos.joomlaguruteam.com/hello
destination directory: hello
requesting all changes
abort: HTTP Error 404: Not Found
Run Code Online (Sandbox Code Playgroud)

并且访问日志具有该功能

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"
Run Code Online (Sandbox Code Playgroud)

但我可以使用未压缩的传输来克隆它

hg clone --uncompressed http://repos.joomlaguruteam.com/hello
Run Code Online (Sandbox Code Playgroud)

但现在我不知道如何从存储库中取出,因为当我从中拉出来时.它有像克隆一样的问题.也是为了传入.

这是我的.htaccess文件

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]
Run Code Online (Sandbox Code Playgroud)

我可以将revison推送到存储库但不能从中获取.

无论如何要配置这个或什么使其工作.

非常感谢你帮助我.

谢谢袁

Yua*_*hen 4

好的我已经发现问题了。

注释掉 /home/my_username/.hgrc 中的以下行

#verbose = True
Run Code Online (Sandbox Code Playgroud)

更多详细信息请参见此处