diff .hgignore @ 142:daceba28ace4

hgignore: everyone stand back! I know regular expressions! This fixes ignores so that certain subdirectories will show me untracked files.
author Augie Fackler <durin42@gmail.com>
date Thu, 17 Sep 2009 10:26:25 -0500
parents 2432d963cdba
children 6d95039c6544
line wrap: on
line diff
--- a/.hgignore
+++ b/.hgignore
@@ -1,20 +1,30 @@
-syntax:glob
-hgwebdir.conf
-.*
-*.pid
-*.pyc
-Desktop
-Documents
-Downloads
-Dropbox
-Library
-Misc. Stuff
-Movies
-Music
-Pictures
-Programming
-Public
-Sites
-durin42_html
-public_html
-www
+syntax:re
+
+# complex regex to ignore all but what I want from dotfiles
+^\.(?!bashrc$|best_unicode|elisp|emacs$|gitconfig$|hg|inputrc$|ipython|irbrc$|pdbrc\.py$|python|screenrc$|shell\.d|vim|zfun|zsh)
+
+# above RE fails to exclude viminfo
+\.viminfo
+# above RE fails to exclude history or machine-specific files
+^\..*(?=history|machine).*
+
+# No pid files
+.*\.pid$
+
+#one-off file/directory exclusions
+hgwebdir\.conf
+^Desktop
+^Documents
+^Downloads
+^Dropbox
+^Library
+^Misc. Stuff
+^Movies
+^Music
+^Pictures
+^Programming
+^Public
+^Sites
+^durin42_html
+^public_html
+^www