title: Ignore Mercurial sub directories
body: <p>I have a directory with my <code>Maven</code> projects in it. It looks like this:</p>
  
  <pre><code>.hg
  .idea
  parentProject
  project1
     .idea
     docs
     src
     target   
     pom.xml 
  project2
     .idea
     docs
     src
     target 
     pom.xml
  target
  pom.xml
  .hgignore
  </code></pre>
  
  <p>I want to ignore the <code>.idea</code> and <code>target</code> directories in all my project. I have included the <code>.idea</code> and <code>target</code> directories into <code>.hgignore</code> but it only ignores those directories in the which <code>.hgignore</code> file is. This means that only in root directory <code>.idea</code> and <code>target</code> is ignored.</p>
  
  <p>If I add <code>.hgignore</code> file in all sub projects this does not changes anything files are still not ignored.</p>
  
  <p>My ignore list looks like this:</p>
  
  <pre><code>build
  dist
  target
  faces-config.NavData
  .idea
  .iml
  </code></pre>
  
  <p>How should I specify in the <code>.hgignore</code> to get the <code>.idea</code> and <code>target</code> ignored from everywhere?</p>