Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TortoiseHg: "TortoisePlink.exe" is not recognized as an internal or external command

I have been stuck with this problem for almost a day now and finally decided to shout-out for help.

Things I have already done:

  • Updated my .ini file with:

[ui] username = User Name ssh = "C:\Program Files (x86)\TortoiseHg\TortoisePlink.exe" -ssh -2 -batch -C

also tried,

ssh = "C:\Program Files (x86)\TortoiseHg\TortoisePlink.exe" -ssh -2 -batch -C -i C:\Program Files (x86)\TortoiseHg\ssh_keys\my_rsa_key.ppk


  • Environmental variables set to "PATH = ;C:\Program Files\TortoiseHg"

  • Current directory .ini file set to [paths] default-push = ssh://[email protected]/Username/test_repo

I get an error:

remote: http 404 not found.When I back-traced it I realized TortoisePlink.exe is not running. I don't have Putty installed alongside TortoiseHg. Is it necessary I do?

like image 437
buggydroid Avatar asked May 07 '13 12:05

buggydroid


2 Answers

This relates to the latest version of TortoiseHG (3.5). I just installed it and received the same message. I found this after a search - just adding this in case others do the same.

With version 3.5 TortoisePlink.exe is contained in the C:\Program Files\TortoiseHg\lib folder. Two solutions: 1) Copy TortoisePlink.exe into C:\Program Files\TortoiseHg or 2) Add ;C:\Program Files\TortoiseHg\lib to the environment PATH (needs a restart). For some reason TortoiseHG installer only adds "C:\Program Files\TortoiseHg" to the PATH.

I used 2) and it worked immediately after re-start.

like image 152
JamesT Avatar answered Nov 19 '22 02:11

JamesT


Had you updated your version of TortoiseHg recently? I just ran into this same issue after having done so and found your question. (I'm now on TortoiseHg 2.10.1 with Mercurial 2.8.1.)

I had read a few people suggesting that there was a change to one or more environmental variables, but nothing concrete enough to link to here. The release notes show that 2.8 has a change, but doesn't sound breaking: customtools: add 'workingdir' setting, {FILES} and {ALLFILES} variables

I decided to reboot to make sure I had a all the environmental variables loaded and after having done so, I discovered everything was working again. I think it could have been a new environmental variable, but again... pure speculation.

like image 31
Mike L Avatar answered Nov 19 '22 03:11

Mike L