I can run a Mercurial command on a repo in a local folder, but trying to access either via HTTP (local server) or HTTPS (bitbucket.org) fails with this error:
Error executing program : Failed to execute program. Error : The directory name is invalid
I know FB can see the servers because an HTTP get file action succeeds on the URLs
This error occurs when the Mercurial action cannot set the working directory (which is the local repository). For example when performing a pull operation the target repository (which will be a local folder) will be set as the working directory and the source can be whatever (SSH, HTTPS, another local folder).
When performing a push this is reversed so that the working directory is set to the source (as this will be the source for this operation) and the destination can be whatever.
This error will only occur if these are back to front for the selected operation and the action attempts to set the HTTPS address as the working directory. So if you were trying to push from HTTPS to a local and vice versa for a pull operation.
I think the real problem is that I’m trying to do something stupid. I can’t run [code]hg log [/code] on a remote repo. It worked on the local files because there was a local folder. I was trying to get log data from a remote without a local working copy.