Using SVN with Python and .pyc files
Roel Schroeven
rschroev_nospam_ml at fastmail.fm
Fri Oct 13 04:25:11 EDT 2006
James Stroud schreef:
> I have been moving to managing a lot of my code with SVN and I have
> found it to work extremely well. However, I'm not exactly sure how to
> deal with all of the .pyc files that get created every time I test a
> project or package. How do people manage this? Do you run a script to
> find files with the .pyc extension and delete those before every commit,
> or is there a more elegant way? It seems like a lot of wasted bandwidth
> an memory on the server side to constantly be dealing with these files
> that contain no real information.
You can instruct SVN to ignore the *.pyc files. What you need to do that
is the svn:ignore property on the directory containing the files, IIRC.
Check the docs for details. The online book at
http://svnbook.red-bean.com/ should tell you all you need. Look
especially at
http://svnbook.red-bean.com/nightly/en/svn.advanced.props.html#svn.advanced.props.special.ignore
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
More information about the Python-list
mailing list