hg: added --ssh to specify which SSH binary to use

Thomas Arendsen Hein thomas at intevation.de
Thu Aug 18 15:53:39 CDT 2005


* Perez-Gonzalez, Inaky <inaky.perez-gonzalez at intel.com> [20050818 22:27]:
> hg: added --ssh to specify which SSH binary to use
> 
> My first inroad in python code, so it is kind of dirty for sure. I use
> a global (commands.ssh_command) to store the name of the SSH binary. I
> am guessing I should also add some support for it in .hgrc, but I have
> seriously stretched my python knowledge.

I think this doesn't need a short option, --ssh (or --rsh to use a
more generic name and to be consistent with rsync) is enough.
Usually one will only need a .hgrc option, because either you have
ssh in a strange path, or you don't have it. Special options to ssh
can be given via the ~/.ssh/config file.

But for push/pull/incoming/outgoing it might be good to be able to
specify the remote hg command, as it might not be installed system
wide and the user doesn't want to modify the .bashrc.
Maybe using --hg-path?

> +ssh_command = "ssh"

> +    global ssh_command

I think we need to separate the config parts out of the ui module.
Until then I think the ssh_command may be stored there.

Look at --verbose, ui.verbose and friends.

Thomas

-- 
Email: thomas at intevation.de
http://intevation.de/~thomas/


More information about the Mercurial mailing list