2010-08-12 31 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