Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get a 404 Error when clone, pull mercurial repository

I have a repository in here http://repos.joomlaguruteam.com/

I using hgweb.cgi this 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

and the access log have that

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.

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.

Thank you very much for helping me.

Thanks, Yuan

like image 404
Yuan Chen Avatar asked Feb 11 '11 14:02

Yuan Chen


2 Answers

OK I have found out the problem.

comment out the following line in /home/my_username/.hgrc

#verbose = True

more detail here

like image 159
Yuan Chen Avatar answered Sep 24 '22 16:09

Yuan Chen


This may sound obvious but have you tried uncommenting the #allowpull = true line in your hgweb.config file?

like image 28
hipyhop Avatar answered Sep 22 '22 16:09

hipyhop