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:

  1. Svn Checkout with Private Key Over SSH
  2. Redirect Output of Cron Task to File (both stdout and stderr)
  3. vim tips ( via cheat gem )
  4. Bash Script to Cron for Deleting Old Log Files
  5. How to Run External Commands Without Leaving Vim
You should follow me on Twitter here.
Subscribe to labs via email here.

About this entry