Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TortoiseHg - cmdserver: timed out

Tags:

tortoisehg

I'm getting the following error with pretty much any operation with TortoiseHg - commit, push, update. Lots of people seem to get code 255 but I haven't found much if anything on code 0 (or perhaps code -1). Anybody know a solution? Command line works fine, as does SourceTree (though the latter is hideously slow).

enter image description here

Windows 7 64 bit, TortoiseHg version 4.1.1, Mercurial 4.1.1, Python 2.7.10, PyQt-4.11.4, Qt-4.8.7. I would tag this tortoise-hg but apparently that doesn't exist and I don't have the rep to create it.

like image 361
nasch Avatar asked Oct 17 '22 13:10

nasch


2 Answers

I found the answer here: https://groups.google.com/forum/#!topic/mercurial-ja/1bskOMqLDmw and translated.

Try increasing the timeout for now. The default is 5 seconds.

[tortoisehg] cmdserver.readtimeout = 300

If this helps, I think the hg process is stalled for some reason. If it doesn't, there may be dust in the interprocess communication.

Note that readtimeout is the timeout for inter-process communication, so it has nothing to do with the time required for pull processing.

Add the following to your .hgrc file for the repository affected

[tortoisehg] 
cmdserver.readtimeout = 300

It worked for me - no more dust ;)

like image 130
Kind Contributor Avatar answered Oct 21 '22 08:10

Kind Contributor


This is still visible in 2018, with this thread, which includes:

Check environment variables. If there's %HG%, try without it.

I guess our command string parsing would have some problem on Windows because it uses shlex.split().

Check tortoisehg/thg issue 5021.

like image 40
VonC Avatar answered Oct 21 '22 09:10

VonC