无法在 Windows 上克隆 Mercurial 存储库,但可以在 Linux 上克隆
我正在使用的命令:
服务器:
hg 初始化 foo
hgserve -R foo
远程客户端:
hg clone http://IP_ADDRESS:8000
这适用于 Linux,但在 Windows 上我得到:
destination directory: 192.168.0.122:8000
abort: The directory name is invalid: 192.168.0.122:8000
如果我执行“hg clone http:// IP_ADDRESS:8000/foo
" 然后我在服务器端得到这个:
Exception happened during processing of request from ('127.0.0.1', 1681)
Traceback (most recent call last):
File "SocketServer.pyc", line 560, in process_request_thread
File "SocketServer.pyc", line 322, in finish_request
File "mercurial\hgweb\server.pyc", line 47, in __init__
File "SocketServer.pyc", line 617, in __init__
File "BaseHTTPServer.pyc", line 329, in handle
File "BaseHTTPServer.pyc", line 323, in handle_one_request
File "mercurial\hgweb\server.pyc", line 79, in do_GET
File "mercurial\hgweb\server.pyc", line 70, in do_POST
File "mercurial\hgweb\server.pyc", line 63, in do_write
File "mercurial\hgweb\server.pyc", line 127, in do_hgweb
File "mercurial\hgweb\hgweb_mod.pyc", line 86, in __call__
File "mercurial\hgweb\hgweb_mod.pyc", line 118, in run_wsgi
ErrorResponse
我在 Windows XP 上使用 Mercurial 1.7.3。
Commands I'm using:
server:
hg init foo
hg serve -R foo
remote client:
hg clone http://IP_ADDRESS:8000
this works on Linux, but on Windows I get:
destination directory: 192.168.0.122:8000
abort: The directory name is invalid: 192.168.0.122:8000
if I do "hg clone http://IP_ADDRESS:8000/foo
" then I get this on server side:
Exception happened during processing of request from ('127.0.0.1', 1681)
Traceback (most recent call last):
File "SocketServer.pyc", line 560, in process_request_thread
File "SocketServer.pyc", line 322, in finish_request
File "mercurial\hgweb\server.pyc", line 47, in __init__
File "SocketServer.pyc", line 617, in __init__
File "BaseHTTPServer.pyc", line 329, in handle
File "BaseHTTPServer.pyc", line 323, in handle_one_request
File "mercurial\hgweb\server.pyc", line 79, in do_GET
File "mercurial\hgweb\server.pyc", line 70, in do_POST
File "mercurial\hgweb\server.pyc", line 63, in do_write
File "mercurial\hgweb\server.pyc", line 127, in do_hgweb
File "mercurial\hgweb\hgweb_mod.pyc", line 86, in __call__
File "mercurial\hgweb\hgweb_mod.pyc", line 118, in run_wsgi
ErrorResponse
I'm using Mercurial 1.7.3 on Windows XP.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试...
某些目录名称 DIRNAME。 Windows 对于文件(或目录)名称中可以使用哪些字符以及不能使用哪些字符更加挑剔,因此它不允许使用诸如
/
或:
之类的内容,因此,您必须为其指定要克隆到的文件夹的名称。Try...
for some directory name DIRNAME. Windows is a bit more picky about what characters can and can't be in file (or directory) names, and thus it doesn't allow things like
/
or:
, so instead you have to give it a name for a folder to clone into.