Ignoring pyc and other file patterns in Subversion
I’ve always used svn:ignore for this, but global-ignores is so much nicer!
Setting ignore property on a single directoryYou can set a property on any directory of a working copy, so that the chosen files in that directory will be ignored by svn. For example: % svn propset svn:ignore .pyc pythonfiles/ will make svn ignore all .pyc files in the directory “pythonfiles”, but not those in other directories.Setting ignore patterns globally You can edit the ~/.subversion/config file, and add “.pyc” in the line starting with "global-ignores =". For example, my such line is: global-ignores = .o .lo .la ## ..rej .rej .~ ~ .# .DS_Store .pyc .swp
via Ignoring some file in a Subversion working copy « handyfloss.