Tagged as Programming
Written on 2008-10-17 19:20:36
I hadn't actually looked into ignoring files with Mercurial until today. You can set up a file in the root of your repository called .hgignore that will make your life a bit easier. Mercurial will read that file (which is a list of patterns in glob or regexp format) and will ignore any files that match those patterns when it does it's versioning work. So, want to ignore anything under the unversioned directory, mercurial configuration files and any temporary files? Here you go:
syntax: glob
unversioned/*
.hgrc
.hgignore
*~
\#*
*.elc
.DS_Store