2010-08-12 67 views
2

在Windows中使用hg serve命令时,服务器启动正确,但是当有人尝试执行克隆时,会显示此错误。Mercurial hg serve命令的问题

 

$ hg serve 
listening at http://machineX:8000/ (bound to *:8000) 
---------------------------------------- 
Exception happened during processing of request from ('127.0.0.1', 4456) 
Traceback (most recent call last): 
    File "SocketServer.pyc", line 558, in process_request_thread 
    File "SocketServer.pyc", line 320, in finish_request 
    File "mercurial\hgweb\server.pyc", line 42, in __init__ 
    File "SocketServer.pyc", line 615, in __init__ 
    File "BaseHTTPServer.pyc", line 329, in handle 
    File "BaseHTTPServer.pyc", line 323, in handle_one_request 
    File "mercurial\hgweb\server.pyc", line 74, in do_GET 
    File "mercurial\hgweb\server.pyc", line 65, in do_POST 
    File "mercurial\hgweb\server.pyc", line 58, in do_write 
    File "mercurial\hgweb\server.pyc", line 122, in do_hgweb 
    File "mercurial\hgweb\hgweb_mod.pyc", line 85, in __call__ 
    File "mercurial\hgweb\hgweb_mod.pyc", line 117, in run_wsgi 
ErrorResponse 
---------------------------------------- 

看来这是某种蟒蛇的错误......我已经尝试重新安装到善变的最新版本,但仍然出现同样的问题。

其他人看过这个吗?

谢谢!

+0

你使用哪个版本的mercurial?当你从一个空的(刚创建的)存储库提供服务时,这个错误是否也会发生? – Rudi 2010-08-13 08:30:10

回答

5

它一个愚蠢的问题...

,我在我的“你好”库做hg serve,我试图访问它

hg clone http://machine:8000/hello

你不应该使用回购协议名称在地址...

即是。

+1

感谢您写这篇文章...我得到了同样的错误,并可能出于同样的原因。多么可怕的无法诊断的错误信息。有人需要教那个Python程序员如何编写“未找到路径”。更糟糕的是,这个问题最有可能发生在新的汞使用者身上,并阻止他们使用汞。 – LarsH 2011-02-11 21:31:12