title: Mercurial hg ignore does not work properly
body: <p>Situation</p>
  
  <pre><code>$ cat .hgignore
  .hgignore
  
  $ hg status
  M file1
  M file2
  M src/project.xml
  </code></pre>
  
  <p>I don't want to track the <code>project.xml</code> so I run</p>
  
  <pre><code>echo "project.xml" &gt;&gt; .hgignore
  </code></pre>
  
  <p>and the result is</p>
  
  <pre><code>$ cat .hgignore
  .hgignore
  project.xml
  
  $ hg status
  M .hgignore
  M file1
  M file2
  M src/project.xml
  </code></pre>
  
  <p>So the <code>.hgignore</code> is now as modified even though it shouldn't be tracked and nothing happend with the <code>project.xml</code>. What does this mean?</p>