title: About Mercurial, .hgignore file and glob syntax
body: <p>Is it possible, while using <strong>glob</strong> syntax for an .hgignore file, to recursively ignore certain files and folders, except one?</p>
  
  <p>Assuming that you have:</p>
  
  <pre><code>a/
  a/b
  a/c
  a/d
  </code></pre>
  
  <p>Something like:</p>
  
  <pre><code>syntax globe:
  a
  ^a/b
  </code></pre>
  
  <p>This should ideally ignore <strong>c</strong> and <strong>d</strong> and keep <strong>b</strong>.</p>
  
  <p>I know this has been discussed in other SO questions, but it seems they're all using <strong>regex</strong> mode for the syntax.</p>