There are two project in which I collaborate, they live in different servers, A and B.
While A has the hg
program in /opt/mercurial/bin/hg
, B has it in /usr/local/bin/hg
.
When I want to pull/push changes to either remote, I have to manually modify .hgrc
file in order for the option remotecmd
to point to the right location of hg
.
I would like to know if it is possible to setup different remotecmd
paths for different remotes so that I don't have to manually change the path of the hg
program everytime I need to do some remote operation.
I saw this question: Setup platform-dependent hgrc but it seemed to me that there should be a more native (something like a built-in setting) way to do this. So far I haven't been able to find it, so any help will be welcome :)
Thanks!