无法在 Windows 上克隆 Mercurial 存储库,但可以在 Linux 上克隆

发布于 2024-10-12 03:54:45 字数 1336 浏览 4 评论 0原文

我正在使用的命令:

这适用于 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:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱她像谁 2024-10-19 03:54:45

尝试...

hg clone http://IP_ADDRESS:8000 DIRNAME

某些目录名称 DIRNAME。 Windows 对于文件(或目录)名称中可以使用哪些字符以及不能使用哪些字符更加挑剔,因此它不允许使用诸如 /: 之类的内容,因此,您必须为其指定要克隆到的文件夹的名称。

Try...

hg clone http://IP_ADDRESS:8000 DIRNAME

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文