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.
Related posts:
- Svn Checkout with Private Key Over SSH
- Redirect Output of Cron Task to File (both stdout and stderr)
- vim tips ( via cheat gem )
- Bash Script to Cron for Deleting Old Log Files
- How to Run External Commands Without Leaving Vim
About this entry
You’re currently reading “Ignoring pyc and other file patterns in Subversion,” an entry on experiments and essays
- Published:
- 8.18.09 / 3pm
- Category:
- command line

View Comments
Jump to comment form | comments rss [?]