svn:ignore pattern files
Text files with common patterns used for the svn:ignore property in my projects.
Usage
Personaly, I keep all my pattern files in my .subversion configuration folder, in my home directory:
$ cd ~/.subversion $ mkdir ignore_patterns $ cd ignore_patterns $ wget http://davconvent.objectis.net/knowledge/svn-ignore-pattern-files/python $ wget http://davconvent.objectis.net/knowledge/svn-ignore-pattern-files/python_egg $ wget http://davconvent.objectis.net/knowledge/svn-ignore-pattern-files/buildout $ wget http://davconvent.objectis.net/knowledge/svn-ignore-pattern-files/buildout_var
To set the svn:ignore property on the current subversion working copy, I type:
$ svn propset svn:ignore -F ~/.subversion/ignore_patterns/python .
In this example, I use the file python in which the patterns are defined for a Python project. Replace the file name according to your needs, see other patterns in files described below
Files
These are pattern files that I use on a regular basis.
python:
*.pyc *.pyo .DS_Store ._*
Get the file: python.
python_egg:
*.egg-info dist build *.pyc *.pyo *.tmproj .DS_Store ._*
Get the file: python_egg.
buildout:
*.pyc *.pyo .DS_Store ._* bin parts develop-eggs .installed.cfg
Get the file: buildout.
buildout_var:
.DS_Store ._* log filestorage
Patterns from this file are meant to be set on the var/ directory of a buildout project:
$ cd var $ svn propset svn:ignore ~/.subversion/ignore_patterns/buildout_var .
Get the file: buildout_var.
Description of some pattern
- .DS_Store are files added by the Mac OS X Finder for storing custom attributes of a folder such as the position of icons or the choice of a background image.
- The ._ prefix is used by Mac OS X to save file extended attributes on file systems that don't support them natively. See This article, this TextMate note and the setxattr man page for more details on extended attributes in Mac OS X.
