Mercurial克隆每次都会从多个来源失败,达到99.x%

时间:2013-07-15 10:23:25

标签: python mercurial

当我尝试克隆mercurial存储库时,我遇到了中断错误。我尝试过几个不同的来源,以确保它不是存储库的问题。

我在具有管理员权限的Windows 7(64位)计算机上运行cygwin。

EG。命令:
hg clone --debug https://www.mercurial-scm.org/repo/hg mercurial-repo

当我尝试克隆乌龟GUI时出现类似的问题...

欣赏任何想法!

更新:感谢Tim的评论,完全退出我的防病毒软件(不仅仅是试图在内部禁用)解决了这个问题。

我得到的错误:

** unknown exception encountered, please report by visiting
** http://mercurial.selenic.com/wiki/BugTracker
** Python 2.7.3 (default, Dec 18 2012, 13:50:09) [GCC 4.5.3]
** Mercurial Distributed SCM (version 2.5.2)
** Extensions loaded:
Traceback (most recent call last):
  File "/usr/bin/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 28, in run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 65, in dispatch
    return _runcatch(req)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 88, in _runcatch
    return _dispatch(req)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 743, in _dispatch
    cmdpats, cmdoptions)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 514, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 833, in _runcommand
    return checkargs()
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 804, in checkargs
    return cmdfunc()
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 740, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/lib/python2.7/site-packages/mercurial/util.py", line 475, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/mercurial/commands.py", line 1234, in clone
    branch=opts.get('branch'))
  File "/usr/lib/python2.7/site-packages/mercurial/hg.py", line 371, in clone
    destpeer.local().clone(srcpeer, heads=revs, stream=stream)
  File "/usr/lib/python2.7/site-packages/mercurial/localrepo.py", line 2540, in clone
    return self.stream_in(remote, set(('revlogv1',)))
  File "/usr/lib/python2.7/site-packages/mercurial/localrepo.py", line 2473, in stream_in
    for chunk in util.filechunkiter(fp, limit=size):
  File "/usr/lib/python2.7/site-packages/mercurial/util.py", line 941, in filechunkiter
    s = nbytes and f.read(nbytes)
  File "/usr/lib/python2.7/site-packages/mercurial/keepalive.py", line 422, in read
    s = self._rbuf + self._raw_read(amt)
  File "/usr/lib/python2.7/httplib.py", line 541, in read
    return self._read_chunked(amt)
  File "/usr/lib/python2.7/site-packages/mercurial/keepalive.py", line 451, in _read_chunked
    value += self._safe_read(amt)
  File "/usr/lib/python2.7/httplib.py", line 649, in _safe_read
    raise IncompleteRead(''.join(s), amt)
httplib.IncompleteRead: IncompleteRead(11129 bytes read, 54407 more expected)

1 个答案:

答案 0 :(得分:1)

请注意,答案由@ tim-pietzcker在第二条评论中发布,而@Shane表示这有效 - 我只是将其作为答案添加,以便问题不再显示为&#34; 未应答&#34;