It seems I do not fully understand the discussion about ssh...

When I manually make this command (what 'hg' does)...

ssh xxx.yyy.zzz "hg init test"

...the result is:

bash: hg: Command not found...


When I manually modify it...

ssh xxx.yyy.zzz 'hg init test'

...the result is...
!Adding key: proto=pass server=xxx.yyy.zzz service=ssh user=pavel
password: 
!
...and the remote repository is successfully created.

Therefore I though the problem is wrong usage of " instead of ' in the mercurial port...

Pavel