【问题标题】:Can't clone Mercurial repo on Windows, can do it on Linux无法在 Windows 上克隆 Mercurial 存储库,可以在 Linux 上进行
【发布时间】:2011-06-09 00:40:47
【问题描述】:

我正在使用的命令:

这适用于 Linux,但在 Windows 上我得到:

destination directory: 192.168.0.122:8000
abort: The directory name is invalid: 192.168.0.122:8000

如果我执行“hg clone @987654322@_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。

【问题讨论】:

    标签: mercurial clone


    【解决方案1】:

    试试……

    hg clone http://IP_ADDRESS:8000 DIRNAME
    

    对于某些目录名称 DIRNAME。 Windows 对文件(或目录)名称中可以和不可以使用的字符有点挑剔,因此它不允许 /: 之类的内容,因此您必须为它命名要克隆到的文件夹。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-09
      • 1970-01-01
      • 1970-01-01
      • 2011-06-09
      • 2010-10-23
      • 1970-01-01
      相关资源
      最近更新 更多