title: Mercurial ignore-file for Eclipse and Android development
body: <p>I have seen samples for Mercurial ignore files for <a href="https://stackoverflow.com/questions/34784/mercurial-setup-for-visual-studio-2008-projects">Visual Studio</a>, amongst others.</p>
  
  <p>I've just started playing around with Android development, and I also use this time to experimenting with Mercurial. <strong>So my question is: does anyone have a good example of a <code>.hgignore</code> file to use for Eclipse and Android development?</strong></p>
  
  <p>For starters I've got the following myself:</p>
  
  <pre><code># use glob syntax
  syntax: glob
  
  # Ignore patterns
  .metadata\
  bin\
  gen\
  </code></pre>
  
  <p>Are there any other ignore patterns that should be included? Should for instance the Eclipse files <code>.classpath</code> and <code>.project</code> be omitted from version control as well?</p>
  
  <p><strong>-- Edit below --</strong></p>
  
  <p>I haven't quite gotten the answers I hoped for yet, so I'll put out a bounty and try to specify a bit clearer what I'm looking for.</p>
  
  <p>After experimenting a bit myself, I seem to have found that the suggested <code>.hgignore</code> listed above seems to be sufficient. The only addition I've made, is one line with <code>.settings</code> (this was a folder that appeared after I ran <em>Android Tools -> Fix Project Properties</em>). I've also found that (as mentioned by Ry4an) that the Eclipse files <code>.classpath</code> and <code>.project</code> should <em>not</em> be excluded.</p>
  
  <p>I am however uncertain that this small ignore file will be sufficient when I get to projects a bit bigger than the basic tutorials (if it actually <em>is</em> all good, please explain why, and you'll get the credit). So to summarize what I'm looking for:</p>
  
  <ul>
  <li>I want a concrete example for a <code>.hgignore</code> file for an Android project under Eclipse</li>
  <li>The ignore file should be so that whenever I check out a copy of the repository at a new location, it should work straight away (i.e. without having to mess with paths and references, add missing files etc.)</li>
  <li>Please also explain <em>why</em> your include file looks like it does (I want to understand why certain files/directories are excluded (and why some definitely should be included))</li>
  <li>If you include OS specific excludes, please also state so (I'm running on Windows 7 btw.)</li>
  </ul>