我有一个跟踪 git 存储库的 Mercurial 存储库。它在 Windows 10 上运行良好。现在我将它作为目录移动到 Mac,然后运行hg reset -Ca
只是为了清理它。现在我试图运行hg pull
它会导致这样的错误:
% hg --traceback --verbose pull 255 ↵
pulling from git+https://someserver/somerepo.git
Traceback (most recent call last):
File "/Users/user/.pyenv/versions/2.7.14/lib/python2.7/site-packages/mercurial/scmutil.py", line 154, in callcatch
File "/Users/user/.pyenv/versions/2.7.14/lib/python2.7/site-packages/mercurial/dispatch.py", line 314, in _runcatchfunc
.....
File "/Users/user/.pyenv/versions/2.7.14/lib/python2.7/site-packages/dulwich/pack.py", line 1004, in __init__
File "/Users/user/.pyenv/versions/2.7.14/lib/python2.7/site-packages/dulwich/file.py", line 90, in GitFile
IOError: [Errno 24] Too many open files: '/Users/user/Projects/somerepo/.hg/git/objects/pack/pack-c03bf69ae597535d876f0dd30ddd6458f2c3f1ff.pack'
abort: Too many open files: /Users/user/Projects/somerepo/.hg/git/objects/pack/pack-c03bf69ae597535d876f0dd30ddd6458f2c3f1ff.pack
我查了一下,看起来我有最新版本的hg-git
和dulwich
dulwich (0.18.6)
hg-git (0.8.10)
Mercurial 也是最新的
% hg --version
Mercurial Distributed SCM (version 4.5)
我检查了 Windows 上的 Mercurial 版本,4.4.2
如果这很重要。我想知道是否有人遇到过这样的问题,并且可能有解决方法或修复方法。