title: Why is .hgignore being ignored?
body: <p>I am very new to Hg so please excuse my ignorance here...</p>
  <p>I am using Mercurial and TortoiseHg in Windows 7. I have a repository created that has the following folder structure:</p>
  <pre><code>-- My repo dir
  |
  |--- .hg
  |--- .hgignore
  |--- File 1
  |--- File 2
  |--- ...
  </code></pre>
  <p>My database data files live in the repo directory but I do not want them to be included as part of the repository. I've tried all kinds of things in the <code>.hgignore</code> file, but regardless when I right-click on the repo folder in the Windows Shell and go to <code>Hg Commit...</code>, it includes the two database data files in the list of files to be committed. Yes, I can uncheck them manually, but my thought was that by being in <code>.hgignore</code> they wouldn't be included in the list of files to commit.</p>
  <p>Here's my current incarnation of <code>.hgignore</code>, although I've tried a handful of others with no luck:</p>
  <pre><code>MyDatabase\.mdf
  MyDatabase\_log\.ldf
  </code></pre>
  <p>Am I being daft here, or is it that TortoiseHg does not respect/inspect the <code>.hgignore</code> file when committing?</p>
  <h3>UPDATE:</h3>
  <p>Finally got this to work. I had to instruct Mercurial to forget the files, as @Diego suggested. Interestingly, though, when I followed @Diego's suggestions and tried to forget them via the command-line it did not work. I had to go to Windows Explorer, right-click on the files, and from the context menu I chose TortoiseHg --&gt; Forget Files...</p>
  <p>Thanks for the suggestions, everyone.</p>