title: How to save username and password with Mercurial?
body: <p>I used Mercurial in a personal project, and I have been typing my username and password every time I want to push something to the server.</p>
  
  <p>I tried adding the following to the <code>.hgrc</code> file in my home directory, but it seems to be completely ignored.</p>
  
  <pre><code>[ui]
  username = MY_USER_NAME
  password = MY_PASSWORD
  </code></pre>
  
  <p>How to do this the right way?</p>