在Windows中使用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 ----------------------------------------
这似乎是某种python错误...我已经尝试重新安装到最新版本的mercurial,但仍然会出现同样的问题。
其他人之前见过这个吗?
谢谢!
答案 0 :(得分:5)
这是一个愚蠢的问题......
我正在我的“hello”存储库中执行hg serve
,我试图以
hg clone http://machine:8000/hello
你不应该在地址中使用回购名称......
就是这样。