title: .hgignore syntax for ignoring only files, not directories?
body: <p>I have a problem which I can't seem to understand. I'm using TortoiseHg (version 0.7.5) on Windows but on Linux I have the same problem. Here it is:</p>
  
  <p>My <code>.hgignore</code> file:</p>
  
  <pre><code>syntax: regexp
  ^[^\\/]+$
  </code></pre>
  
  <p>What I'm trying to achieve is to add to the ignore list the files which are in the root of the hg repository.</p>
  
  <p>For example if I have like this:</p>
  
  <pre><code>.hg
  +mydir1
  +mydir2
  -myfile1
  -myfile2
  -anotherfile1
  -anotherfile2 
  .hgignore
  </code></pre>
  
  <p>I want myfile1(2) and anotherfile1(2) to be ignored (names are only for the purpose of this example - they don't have a simple rule that can be put in the hgignore file easily)</p>
  
  <p>Is there something I'm missing because I'm pretty sure that regexp is good (I even tested it)? Ideas?</p>
  
  <p>Is there a simpler way to achieve this? [to add to the ignore list files that are in the root of the mercurial repository]</p>