The problem: I want to use Eclipse to pull two different Mercurial repositories, from two different machines.
“That’s not a problem!”
Generally speaking, it isn’t: Eclipse juggles multiple repositories very nicely. The real problem is on the remote machines: on one, Mercurial is /usr/bin/hg; but on the other it’s /usr/local/bin/hg.
“So?”
There are two ways to specify the remote Mercurial command: add a remotecmd option to the [ui] section of ~/.hgrc; or add the –remotecmd command-line option to the hg clone command. Unfortunately, the former setting is not remote-host-specific, and the latter (so far as I can tell) is not supported by MercurialEclipse.
“I see. Have you tried–”
But it occurs to me that the ui.remotecmd setting was just an experiment, so I have no particular investment in the current value. I can change it to /usr/bin/hg with no consequences.
“That sounds good.”
Indeed it does. Thanks for the tip!
“Glad I could help. I think.”