Skip to content
Advertisement

Hg Git Pull Causes Too Many Open Files Error

I have a Mercurial repository that tracks a git repository. It was working ok on Windows 10. Now I moved it to a Mac as a directory, then ran hg reset -Ca just to clean it up. Now I am trying to run hg pull It causes an error like this:

JavaScript

I checked and it looks like I have latest versions of hg-git and dulwich

JavaScript

Mercurial is also up to date

JavaScript

I checked version of Mercurial on Windows and it is 4.4.2 if that matters. I wonder if anyone had an issue like that and perhaps has a work around or fix.

Advertisement

Answer

What does ulimit -n say on your Mac? This is the limit on the number of open files. Try then running ulimit -n N for some larger N than what it was previously, and run the hg command again.

You may want to put the ulimit -n N command in your ~/.bashrc to run it every time you log in, if you have this problem more than just this once.

Advertisement