title: Mercurial: remote operation with different environments (remotecmd .hgrc)
body: <p>There are two project in which I collaborate, they live in different servers, A and B.
  While A has the <code>hg</code> program in <code>/opt/mercurial/bin/hg</code>, B has it in <code>/usr/local/bin/hg</code>.</p>
  
  <p>When I want to pull/push changes to either remote, I have to manually modify <code>.hgrc</code>file in order for the option <code>remotecmd</code>to point to the right location of <code>hg</code>.</p>
  
  <p>I would like to know if it is possible to setup different <code>remotecmd</code>paths for different remotes so that I don't have to manually change the path of the <code>hg</code>program everytime I need to do some remote operation.</p>
  
  <p>I saw this question: <a href="https://stackoverflow.com/questions/4607273/in-mercurial-how-to-setup-and-use-per-user-platform-dependent-hgrc">Setup platform-dependent hgrc</a> 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 :)</p>
  
  <p>Thanks!</p>