Mercury over ssh, no suitable response from remote hg

When I start hg clone ssh://user@host/repo_dir, I get "no suitable response from the remote hg" and "There is no Mercurial repository (.hg not found)!". What causes this? I have ssh access to server / files.

If I run scp -r user@host:/repo_dir ./, I get all the contents of the repo, including .hgjust fine. same forssh user@host "ls /repo_dir"

adding -vdoes nothing. the output is exactly the same. same for-vvv

+4
source share
1 answer

It turned out that I had the wrong syntax. Mercurial uses the scp / ssh style to refer to files and expects a double slash when the file path is absolute, as it was in my case.

An alternative is to either use a symbolic link in your home, or add two forward slashes for the root fs.

instead:

hg clone ssh://user@host/repo_dir

using:

hg clone ssh://user@host//repo_dir
#                        ^
+5
source

Source: https://habr.com/ru/post/1536283/


All Articles