Monday, July 18, 2011

Setting svn:ignore on __pycache__ directories

py.test 2.1 introduces the use of __pycache__ directories.

Use ...

svn propset -R svn:ignore __pycache__ directory

... to ignore ___pycache__ directories in directory and in all subdirectories of directory.

The property setting will be committed to the repository on your next check-in and will thereafter be acquired by all other users of the repository on check-out.

1 comment:

Dann said...

Just leaving a "Thank You", I've been ripping my hair out trying to ignore __pycache__ files. I think the issue was that I had files I needed to commit before running the command, because modifications were made in a folder that svn wanted to ignore. I'm assuming svn is so inflexible that if any changes are apparent in a folder, it cannot complete the svn ignore command.

Thank you.