【发布时间】:2011-06-25 14:04:44
【问题描述】:
我在这里有一个存储库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/*
我可以浏览它,但我不能克隆它。每次我克隆它时都会出现这个错误
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"
但我可以使用未压缩传输克隆它
hg clone --uncompressed http://repos.joomlaguruteam.com/hello
但现在我不知道如何从存储库中拉取,因为当我从它拉取时。 它有与克隆相同的问题。也用于传入。
这是我的 .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]
我可以将修订推送到存储库,但不能从中提取。
有没有办法配置它或让它工作。
非常感谢你帮助我。
谢谢, 元
【问题讨论】:
-
@Damiel 阅读常见问题解答(如“程序员常用的软件工具”)和关于 VCS 和 IDE 的大量非编程问题
-
你的 .htaccess 是什么样的?
-
嗨@TheLQ,我已经在问题上添加了我的 .htaccess 文件
标签: mercurial clone apache-config hgrc