# HG changeset patch # User Augie Fackler # Date 1253201185 18000 # Node ID daceba28ace4b4673df4405235e257635ccc3e78 # Parent c9f70cf1d4c6794540b22be6f506ecf39da9d0df hgignore: everyone stand back! I know regular expressions! This fixes ignores so that certain subdirectories will show me untracked files. diff --git a/.hgignore b/.hgignore --- 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