title: how to remove a folder from tracking in mercurial
body: <p>To ignore <strong>./node_modules/</strong> folder and <strong>.idea</strong> folder into .hgignore file so that I don't want to track them.</p>
  
  <p>Currently I have the following rules on my .hgignore file.</p>
  
  <pre><code>*.orig
  *./node_module/
  *.idea/ 
  *.rej
  *~
  *.o
  tests/*.err
  </code></pre>
  
  <p>But abort error on <code>hg status</code>.</p>