У меня здесь есть репозиторий 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]
Я могу отправить ревизию в репозиторий, но не могу извлечь из него.
Есть ли способ настроить это или что-то, чтобы заставить его работать.
Большое спасибо за помощь.
Спасибо, Юань