title: Mercurial subrepo - changed .hgsub file but it still tries to pull from old server
body: <p>I have a mercurial repo with a subrepo:</p>
  
  <pre><code>repo
    subrepo
    .hgsub
  </code></pre>
  
  <p>The .hgsub originally had</p>
  
  <pre><code>subrepo = https://&lt;domain&gt;/user/repo
  </code></pre>
  
  <p>and domain was set up with my dns to point to bitbucket (I was playing around with their custom domains feature).</p>
  
  <p>I've now changed .hgsub to:</p>
  
  <pre><code>subrepo = https://user@bitbucket.org/user/repo
  </code></pre>
  
  <p>But when I try to pull from the subrepo I get the error:</p>
  
  <pre><code>abort: &lt;domain&gt; certificate error: certificate is for bitbucket.org
  </code></pre>
  
  <p>Which means it is still trying to pull from my domain rather than from bitbucket. </p>
  
  <p>I've checked my <code>repo/subrepo/.hg/hgrc</code> file and it correctly updated to:</p>
  
  <pre><code>[paths]
  default = https://user@bitbucket.org/user/repo
  </code></pre>
  
  <p>Why is it still trying to pull from the old domain?</p>
  
  <p>If I try to push from <code>repo</code> then it pushes correctly to bitbucket.</p>
  
  <p>Edit: Actually, push from the subrepo doesn't work but does work from the parent repo</p>
  
  <p><code>repo &gt; push</code> - works, pushes to bitbucket</p>
  
  <p><code>subrepo &gt; pull</code> - doesn't work, tries to pull from my domain</p>
  
  <p><code>subrepo &gt; push</code> - doesn't work, tries to pull from my domain</p>